[Locomotive-users] acts_as_versioned gem not recognised

Ryan Raaum ryan.raaum at gmail.com
Mon Jul 10 16:04:59 GMT 2006


Hi ,

On 7/10/06, Vincent Bray <noodlet at gmail.com> wrote:
>
> Hi,
>
> First, thanks for Locomotive. It's a pleasure to work with.
>
> I'm using Version 2.0.7 on a black macbook and trying to get the
> acts_as_versioned gem running. I used Locomotive to open a terminal
> window, verified that `which gem` showed the version in /Applications
> (though I don't have any other installation of it) and ran `gem
> install acts_as_versioned`. That all seemed to run smoothly, and
> indeed:
>
>
> /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/gems/1.8/gems/acts_as_versioned-
> 0.2.3
>
> .. seems to be all present and correct. gem_server even shows it's
> docs. However, I can't get it to work with my RoR app.
>
> >> Team.find :first
> NameError: undefined local variable or method `acts_as_versioned' for
> Team:Class
>         from
> /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/gems/1.8/gems/activerecord-
> 1.14.2/lib/active_record/base.rb:1129:in
> `method_missing'
>         from script/../config/../config/../app/models/team.rb:4
>         from
> /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/gems/1.8/gems/activesupport-
> 1.3.1/lib/active_support/dependencies.rb:140:in
> `load'
>         from
> /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/gems/1.8/gems/activesupport-
> 1.3.1/lib/active_support/dependencies.rb:56:in
> `require_or_load'
>         from
> /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/gems/1.8/gems/activesupport-
> 1.3.1/lib/active_support/dependencies.rb:30:in
> `depend_on'
>         from
> /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/gems/1.8/gems/activesupport-
> 1.3.1/lib/active_support/dependencies.rb:85:in
> `require_dependency'
>         from
> /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/gems/1.8/gems/activesupport-
> 1.3.1/lib/active_support/dependencies.rb:98:in
> `const_missing'
>         from
> /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/gems/1.8/gems/activesupport-
> 1.3.1/lib/active_support/dependencies.rb:131:in
> `const_missing'
>         from (irb):1
>
>
> Am I missing something obvious? I believe that for non-loco installs,
> there's no need to explicitly load gems in to rails apps..


I _believe_ that the acts_as_versioned gem is depreciated and that you
should now be using the acts_as_versioned plugin (see
http://wesgarrison.us/2006/05/02/actsasversioned-in-ruby-on-rails/ on how to
install that).

The gem you would have to require somewhere, but not the plugin.

I hope this is right - I've not actually used it :)

Best,

-r


Thanks,
> noodl
> _______________________________________________
> Locomotive-users mailing list
> Locomotive-users at lists.raaum.org
> http://lists.raaum.org/mailman/listinfo/locomotive-users
>



-- 
Ryan Raaum
http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida
http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060710/77aa3d78/attachment.htm


More information about the Locomotive-users mailing list