Annotate gem and rails 3.1

Posted by vincent jacquel on Stack Overflow See other posts from Stack Overflow or by vincent jacquel
Published on 2011-09-03T19:51:46Z Indexed on 2012/06/24 21:16 UTC
Read the original article Hit count: 268

Does anyone have any idea why annotate does not work anymore in rails 3.1 ?

When trying to run it with :

 $ rvmsudo bundle exec annotate --position before

and given I've got the following in my gemfile:

gem "annotate", '2.4.0'

I get the following error:

  /usr/local/rvm/gems/ruby-1.9.2-p180@rails31/gems/activerecord-3.1.0/lib/active_record
/railties/databases.rake:3:in `<top (required)>': undefined method `namespace' for
main:Object (NoMethodError)

I'm using RVM with a gemset dedicated to rails 3.1 with Ruby 1.9.2

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby-on-rails-3.1