开发者

Rails 3.1 rc1 and Carrierwave broken

开发者 https://www.devze.com 2023-03-08 17:14 出处:网络
when I use Rails 3.1 rc1 with Carrierwave (master / git / 0.5.4), rails server 开发者_StackOverflow社区won\'t start. I get the following error:

when I use Rails 3.1 rc1 with Carrierwave (master / git / 0.5.4), rails server 开发者_StackOverflow社区won't start. I get the following error:

/Library/Ruby/Gems/1.8/gems/activerecord-3.1.0.rc1/lib/active_record/base.rb:1073:in `method_missing': undefined method `mount_uploader' for #<Class> (NoMethodError)

Any Idea how to fix that?


Looks like the Carrierwave gem is not loaded? Check your gem file and don't forget to do:

bundle install
0

精彩评论

暂无评论...
验证码 换一张
取 消