I found your post and was having the same issue. I was able to solve it
by adding _attributes to the nested model in the form:
% form_for(:product, :url = products_path, :html = { :multipart =
true }) do |f| %
...
...
% f.fields_for(:cover_image_attributes) do |c| %
%=
Maybe you just omitted this, but I think your CoverImage should declare
belongs_to :product
Thanks for the idea Craig. Thought we were on to something there for
a second but apparently not.
The update seems to work just not the create. If I change the create
method to this: (yes I changed
On Thu, Feb 26, 2009 at 9:35 PM, Tim mcintyre@gmail.com wrote:
Has anyone successfully used attachment_fu with rails 2.3 nested model
forms?
Yes.
I've never used attachment_fu before so I may be doing something wrong
there not sure. Here's what I've got:
class Product
3 matches
Mail list logo