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?
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 On Apr 13, 2006, at 1:44 PM, Dylan Markow wrote:> 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? > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2392 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060413/d07158db/smime.bin
Just put: require_gem ''acts_as_versioned'' into your environment.rb. Pete Yandell http://9cays.com On 14/04/2006, at 6:44 AM, Dylan Markow wrote:> 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? > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Apparently Analagous Threads
- First time plugin user: Problem with "acts_as_versioned"
- help: acts_as_versioned setup error "undefined local variable or method ''base_class''"
- acts_as_versioned and acts_as_taggable on same model?
- acts_as_versioned and rails 2.2.2
- acts_as_versioned and getting authors