title: Rails change routing of submit in form_for
body: <p>I have a model 'Article' and a model 'Ratings' nested within articles.</p>
  
  <p>/articles/123/ratings</p>
  
  <p>I want to change the routing of the f.submit in ratings/_form.html.erb
  now it is so, that after pressing submit, my application routs to </p>
  
  <p>/ratings/111</p>
  
  <p>but I want to route it to</p>
  
  <p>/article/123</p>
  
  <p>How can I change the routing in a form_for f.submit button.
  I have found here something like this:</p>
  
  <pre><code>&lt;% form_for :thing, :url =&gt; 
   url_for(:action =&gt; "update", :id =&gt; @thing) do |f| %&gt;
  </code></pre>
  
  <p>But this do not work for my rails 3.2. Thanks for your help,</p>