Wednesday, April 20, 2011

[Rails] Unknown key(s): attributes, discard_if

HI,

Having just installed attribute_fu I'm getting the error
ArgumentError in DogsController#new
Unknown key(s): attributes, discard_if
I assume this is coming from my model has_many parameters
:attributes => true,
:discard_if => proc { |upload| upload.photo_file_size.nil?
I can only assume that I need an include or some path option somewhere
or I havent set up attribute_fu properly?

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate