Added class method to student model to start file import. Students controller created with import action. Nested students routes under categories, shallow, and re-routed the post method with to import action on students controller
First attempt at a csv upload with nested attributes. Not functional yet but close...
Fixed strong params in rosters controller
Roster is saving, CSV is not parsing quite yet. So closebrew list
Fuck yah, parsing the csv properly. need to set roster id and it will be set
Roster is currently saving, with uploaded students, but all attributes are being set to nil. Almost there.
Roster is being saved, and student is being saved. Wahoo
Added logic to reset a student's course id if that student already exists
Import working and assigning attributes properly. About to make some changes that could potentially break some stff so this is a good revert spot
Will need to revisit if statement checking if csv imports properly when doing validations. Added redirect to roster show page
Removed export path from students and stuck it on with rosters. No longer RESTFUL...sad. Wrote export action on rosters controller
Finally figured out how to exclude fuckin columns when exporting...
Removed students controller because it is not needed at this point in time.
Fixed CSV formatting on export