Multi-user download
2 answers
Edited The problem may be that the "photo" variable may be zero.
Replace
<% fields_for ... %>
...
<% end %>
block with
<%= photo.inspect.to_s %>
and see if it really is.
Edited
Try the monkey patch: put Photo.new instead of a photo
<% fields_for 'album[photo_attributes][]', Photo.new do |u| %>
+1
source to share