I am getting the following error when I attempt to use acts_as_tree. I
am new to this relationship and am stuck.

undefined method `acts_as_tree'

Model
class Rental < ActiveRecord::Base
        acts_as_tree :order => "sort_order"

        validates_presence_of :name
        validates_numericality_of :sort_order
end

Schema
create_table "rentals", :force => true do |t|
    t.string   "name"
    t.integer  "sort_order"
    t.integer  "parent_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

What am I missing?
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to