Adding flash messages to files_controller#create
|Assignee:||Jean-Philippe Lang||% Done:|
When you create a new file with empty attachments it redirects to the index view but with no error message.
Now it returns to the new view with a flash message and if the upload is successful, it displays a notice flash.
also changed !attachments.empty? to attachments.any?