You have installed the acts_as_tree plugin, right?
script/plugin install acts_as_tree
(it''s on git://github.com/rails/acts_as_tree.git)
-Rob
On Sep 21, 2009, at 7:36 PM, Jason wrote:
>
> 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?
> >
Rob Biedenharn http://agileconsultingllc.com
Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org