I''m running Rails 2.0 and I''m getting this error (undefined method `acts_as_tree'') when trying to use the ''acts_as_tree'' functionality in one of my models: class Topic < ActiveRecord::Base has_many :pages has_many :screens, :through => :pages has_many :folders has_many :courses, :through => :folders acts_as_tree :order => "title" end I have the "topic" table in my db setup as follows: create_table :topics do |t| t.string :title t.integer :parent_id end What gives? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Did this get replaced by a plugin? I''ve found a similar construct called "acts_as_ordered_tree" that I could use as a plugin, but I want to be sure before going forward. Thanks, -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yes, acts_as_tree (acts_as_list, acts_as_nested_set, autocomplete,...) were removed from Rails core and released separately as plugins in 2.x. On Feb 1, 3:39 pm, Corey Murphy <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Did this get replaced by a plugin? > > I''ve found a similar construct called "acts_as_ordered_tree" that I > could use as a plugin, but I want to be sure before going forward. > > Thanks, > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---