debate-watch / issue-tracker

1 stars 1 forks source link

Video Submission Errors #3

Open s2t2 opened 8 years ago

s2t2 commented 8 years ago

As an Admin, if I visit /videos/new and submit invalid attributes through the form, I should see error messages to help me re-submit with valid attributes.

s2t2 commented 8 years ago

Currently valid attributes, when submitted through the form, also cause an error, even though the video gets added to the library.

s2t2 commented 8 years ago

This behavior is due to a double execution of the videos#create controller action, once via the normal browser flow and once via the ajax request. The ajax request works, then is followed by the normal browser flow action, which throws and error due to lack of sufficient params (as expected).