Not sure, but have you tried using the syntax from the docs, particularly the last example?
https://github.com/thoughtbot/paperclip/wiki/Usage I wonder if yours is valid Ruby but invalid has_attached_file syntax. On Jan 3, 10:34 am, Daniel Oton <[email protected]> wrote: > class Producto < ActiveRecord::Base > has_attached_file :photo, :styles => {{ :small => "50x50"},{ :large => > "150x150"}} > end > > it seems to be ok, but when I submit in edit or new views, I get the > following error: > > NoMethodError (undefined method `[]' for nil:NilClass): -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

