0

I am building a project management application and I am using shrine to do file uploads. I got it working with only having one attachment per project, but now I want to set it up so that I can upload multiple files for any given project. Here is how I have it set up.

GIST File

What I want to do is upload files via shrine on the projects/show page, and associate uploads with both a user and project. Then just display href links to the files within the projects/show page above the uploader.

The form loads without errors but when I submit I get the following error:

enter image description here

Any thoughts or ideas are appreciated!

spacerobot
  • 265
  • 1
  • 5
  • 23
  • See the "Multiple Files" Shrine guide for tips on creating multiple file uploads: http://shrinerb.com/rdoc/files/doc/multiple_files_md.html. TL;DR use ActiveRecord's nested attributes, which is a common strategy for implementing any dynamic one-to-many associations. – Janko Jul 26 '17 at 20:37
  • Thanks I'll take a look at this. – spacerobot Jul 27 '17 at 17:42

0 Answers0