NoMethodError: undefined method `has_attached_file'
问题 Paperclip produces this error, after checking out the plugin's rails3 branch. My Gemfile has following line: gem 'paperclip', :git => 'http://github.com/thoughtbot/paperclip.git', :branch => 'rails3' And the error message is: NoMethodError: undefined method `has_attached_file' for #<Class:0x2a50530> 回答1: Update 06-21-10: the thoughtbot version has been fixed. I had to add Paperclip::Railtie.insert to my application.rb at the end of class Application < Rails::Application to get it to work