DataSet has_many Files, yo!
Opened this issue · 0 comments
chadoh commented
Create the Files model. A DataSet needs to have_many Files (and a File has to belong_to DataSet).
This model will basically have NO attributes, except for a file upload. I suggest using filepicker.io for the file uploads. Filepicker.io has great documentation and should help you get started.
The most complex part is probably the UI. Add a "Add File" button to the data_sets#show page, and make it so that once you upload something and then save the file, you end up back at the data_sets#show page, with the new file showing and the "Add File" button still there.