Skip to content
This repository was archived by the owner on Feb 6, 2019. It is now read-only.

DataSet has_many Files, yo! #25

Open
chadoh opened this issue Jun 26, 2014 · 0 comments
Open

DataSet has_many Files, yo! #25

chadoh opened this issue Jun 26, 2014 · 0 comments
Assignees

Comments

@chadoh
Copy link
Member

chadoh commented Jun 26, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants