fixed it, restarted webrick server :D
On Apr 12, 12:08 am, Ilya
<h4lfl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> i have acts_as_tree installed as plugin under rails 2.0.2 and also its
> defined in class TreeItems, but when i put this in my view
>
> <ul class="tree_level1"
id="cars">Furniture
> <% TreeItem.root.category.children do |cat_children|
%>
> <li><a class="list_item"
href="#"><%=h cat_children.name %></a></
> li>
> <% end %>
> </ul>
>
> it gives me this:
>
> undefined method `acts_as_tree'' for #<Class:0x2bb3f30>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---