Forum: Ruby on Rails acts_as_versioned gem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D9d1b31a337f46ac5e4dd56b55404f58?d=identicon&s=25 Dylan Markow (Guest)
on 2006-04-13 22:46
(Received via mailing list)
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

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

Any clue what might by going on?
46a97bfed2cc82d33f7aedcb5dbc66a5?d=identicon&s=25 Peter T Bosse II (Guest)
on 2006-04-14 01:41
(Received via mailing list)
acts_as_versioned needs to be installed as a plugin in your app.
`cd` to your app directory and then `script/plugin install

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

- Peter
C9c7a65848f13e2b1a226bbe43bc3672?d=identicon&s=25 Pete Yandell (pete)
on 2006-04-14 02:08
(Received via mailing list)
Just put:

   require_gem 'acts_as_versioned'

into your environment.rb.

Pete Yandell
This topic is locked and can not be replied to.