HTML <form> tag causing Rails form to submit a GET instead of POST request
问题 I have a form that works fine until I add the tags for styling (I am using twitter bootstrap). The app is Rails 3.1 and I am on a mac. Here is a form that works fine with no issues: <%= form_for @user do |f| %> <% if @user.errors.any? %> <div class="alert-message error"> <h2>Form is invalid</h2> <ul> <% for message in @user.errors.full_messages %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.label :email %> <%= f.text_field :email %> </div> <div class=