title: Rails3 - How to make a submit button for a nested resource
body: <p>I'm using SimpleForm in Rails 3. How do I make the submit button for this nested resource?</p>
  
  <pre><code>resources :schools do   
    resources :students
  end
  
  &lt;%= simple_form_for @student do |f| %&gt;
    &lt;%= f.input :first_name %&gt;
    &lt;%= f.input :last_name %&gt;
    &lt;%= f.button :submit %&gt;
  &lt;% end %&gt;    
  </code></pre>
  
  <p>If I use <code>f.submit</code>:</p>
  
  <pre><code>ActionView::Template::Error (undefined method `students_path' for #&lt;#&lt;Class:0x000001040ddfb8&gt;:0x000001040d2578&gt;):
  1: &lt;%= simple_form_for @student do |f| %&gt;
  2:     &lt;%= f.input :first_name %&gt;
  3:     &lt;%= f.input :last_name %&gt;
  4:     &lt;%= f.submit %&gt;
  </code></pre>