Acts_as_versioned gem


#1

I’ve installed the acts_as_versioned gem, and it shows up as
installed when i do a “gem list”

After installing it, I set up my new model with the
“acts_as_versioned” line in its model file. I think went to run my
migration to create this table, and I got the following error:

== CreateDpslevels: migrating

– create_table(:dpslevels)
-> 0.0548s
rake aborted!
undefined local variable or method `acts_as_versioned’ for
Dpslevel:Class

(See full trace by running task with --trace)

Any clue what might by going on?


#2

acts_as_versioned needs to be installed as a plugin in your app.
cd to your app directory and then script/plugin install acts_as_versioned.

If that doesn’t work try script/plugin discover before script/ plugin install acts_as_versioned.

  • Peter

#3

Just put:

require_gem ‘acts_as_versioned’

into your environment.rb.

Pete Y.
http://9cays.com