Rails 3.1 + Paperclip + jQuery fileupload

后端 未结 2 999
天涯浪人
天涯浪人 2021-01-31 12:15

I\'ve been looking for a way to set up Ruby on Rails 3.1 with Paperclip and jQuery fileupload. Looking at a tutorial at jQuery fileupload page I got the system set up but I can\

2条回答
  •  终归单人心
    2021-01-31 13:11

    If you explicitly set the name on the file_field:

    f.file_field :photo, multiple: true, name: 'user[photo]'
    

    Rails will generate user[photo] instead of user[photo][].

提交回复
热议问题