title: HTML <form> tag causing Rails form to submit a GET instead of POST request
body: <p>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:</p>
  
  <pre><code>&lt;%= form_for @user do |f| %&gt;
  &lt;% if @user.errors.any? %&gt;
    &lt;div class="alert-message error"&gt;
      &lt;h2&gt;Form is invalid&lt;/h2&gt;
        &lt;ul&gt;
          &lt;% for message in @user.errors.full_messages %&gt;
            &lt;li&gt;&lt;%= message %&gt;&lt;/li&gt;
          &lt;% end %&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
    &lt;% end %&gt;
  
    &lt;div class="field"&gt;
      &lt;%= f.label :email %&gt;
      &lt;%= f.text_field :email %&gt;
    &lt;/div&gt;
    &lt;div class="field"&gt;
      &lt;%= f.label :password %&gt;
      &lt;%= f.password_field :password %&gt;
    &lt;/div&gt;
    &lt;div class="field"&gt;
      &lt;%= f.label :password_confirmation %&gt;
      &lt;%= f.password_field :password_confirmation %&gt;
    &lt;/div&gt;
    &lt;div class="actions"&gt;&lt;%= f.submit %&gt;&lt;/div&gt;
  &lt;%end %&gt;
  </code></pre>
  
  <p>Then, when I add the  tag to the same exact form like this:</p>
  
  <pre><code>&lt;form class="form-stacked"&gt;
  &lt;%= form_for @user do |f| %&gt;
  &lt;% if @user.errors.any? %&gt;
    &lt;div class="alert-message error"&gt;
      &lt;h2&gt;Form is invalid&lt;/h2&gt;
        &lt;ul&gt;
          &lt;% for message in @user.errors.full_messages %&gt;
            &lt;li&gt;&lt;%= message %&gt;&lt;/li&gt;
          &lt;% end %&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
    &lt;% end %&gt;
  
    &lt;div class="field"&gt;
      &lt;%= f.label :email %&gt;
      &lt;%= f.text_field :email %&gt;
    &lt;/div&gt;
    &lt;div class="field"&gt;
      &lt;%= f.label :password %&gt;
      &lt;%= f.password_field :password %&gt;
    &lt;/div&gt;
    &lt;div class="field"&gt;
      &lt;%= f.label :password_confirmation %&gt;
      &lt;%= f.password_field :password_confirmation %&gt;
    &lt;/div&gt;
    &lt;div class="actions"&gt;&lt;%= f.submit %&gt;&lt;/div&gt;
  &lt;%end %&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This form appears to issue a GET request instead of a POST request. Instead of redirecting me upon save like it does without the  tag, I see this in the URL:
  <a href="http://localhost:3000/signup?utf8=%E2%9C%93&amp;authenticity_token=Pt1vOp7lykCPFdj5BJeZ6xwJM2vy0JomMGSKoB%2FyYpU%3D&amp;user%5Bemail%5D=test%40get.com&amp;user%5Bpassword%5D=kevin&amp;user%5Bpassword_confirmation%5D=kevin&amp;commit=Create+User" rel="nofollow">http://localhost:3000/signup?utf8=%E2%9C%93&amp;authenticity_token=Pt1vOp7lykCPFdj5BJeZ6xwJM2vy0JomMGSKoB%2FyYpU%3D&amp;user%5Bemail%5D=test%40get.com&amp;user%5Bpassword%5D=kevin&amp;user%5Bpassword_confirmation%5D=kevin&amp;commit=Create+User</a></p>
  
  <p>I have tried specifying post in both the rails and HTML. Specifying it in rails using :method => post yields the same results (the GET request and URL info above). Using  in the HTML looks like a POST request but the User object isn't saving (I belive this is the case because I am not getting redirected to the root_url, which is set in the controller and works fine when not using  tag). Any ideas?</p>