Form Submit button only works after reload
If it's Rails 4, it's probably because of Turbolinks. Try putting
data-no-turbolink="true" inside your body tag
This may work, it happend once to me.
I believe this is an HTML issue, not a Rails issue. Per this discussion Form inside a table, <form>
can not be placed inside <table>
or <tbody>
or <tr>
. After moving the <form>
to wrap the table and putting the controls inside the respective <td>
the form works.
I still don't understand why refreshing the page made the form work, but...