Error message:
undefined method `acts_as_tree' for #
In your model:
class Post < ActiveRecord::Base
acts_as_tree :order => "name"
end
In the command line windows/termial of your project directory, you can run the followin command:
./script/plugin install acts_as_tree
That is it. Now you don't see the error. And you should have "Vendor\plugins\acts_as_tree"
No comments:
Post a Comment