I have no idea why this is not working, I\'m learning rails and I\'m following a book it says to do it like this:
<%= form_for([@article,@article.comm
If you have a file_field then it submits as html, even when remote: true - took me a long time to work that out so I am adding this answer to maybe save someone else time, there is a solution, use the remotipart gem, see the answer here
remote: true