Re: [Rails] undefined method `key?' for nil:NilClass PaperClip

2012-02-17 Thread Dave Aronson
On Fri, Feb 17, 2012 at 13:10, Felipe Pieretti Umpierre wrote: > NoMethodError in ProjectsController#new > > undefined method `key?' for nil:NilClass That's telling you that there's a problem in the one piece you didn't show us, the controller. Somewhere in your Projects controller, you're call

[Rails] undefined method `key?' for nil:NilClass PaperClip

2012-02-17 Thread Felipe Pieretti Umpierre
Hello, I have a problem with the paperclip, I put on my GemFile gem "paperclip", "~> 2.6.0" I create a migrate class FileUpload < ActiveRecord::Migration def up change_table :projects do |t| t.has_attached_file :image end end def down drop_attached_file :projects, :image