How does the HTML5 multiple file upload field map to a nested model in Rails 3?
问题 I'm trying to use the HTML5 multiple attribute on a file field in a nested form. The models are as follows: class Album < ActiveRecord::Base has_many :album_images has_many :images, :through => :album_images accepts_nested_attributes_for :images end class Image < ActiveRecord::Base has_many :album_images has_many :albums, :through => :album_images mount_uploader :filename, ImageUploader validates_presence_of :filename end The view: <%= semantic_form_for @album, :url => upload_path do |f| %> <