Ruby on rails “打开的文件太多”使用回形针上载时出错

Ruby on rails “打开的文件太多”使用回形针上载时出错,ruby-on-rails,ruby,upload,paperclip,Ruby On Rails,Ruby,Upload,Paperclip,我正在使用Rails 3.2.13和回形针上传/存储照片网站的图像。该表单嵌套用于相册和照片。相册模型包含以下行: attr_accessible :photos_attributes accepts_nested_attributes_for :photos 还有照片模特 has_attached_file :photo 因此表单有一个输入 <input type="file" name="album[photos_attributes][][photo]" multiple="tr

我正在使用Rails 3.2.13和回形针上传/存储照片网站的图像。该表单嵌套用于相册和照片。相册模型包含以下行:

attr_accessible :photos_attributes
accepts_nested_attributes_for :photos
还有照片模特

has_attached_file :photo
因此表单有一个输入

<input type="file" name="album[photos_attributes][][photo]" multiple="true">
我需要在这里添加什么才能使其正常工作?提前谢谢

def create
  @album = Album.new(params[:album])
  if @album.save
    redirect_to album_url(@album)
  else
    render :new
  end
end