I have a model 'Article' and a model 'Ratings' nested within articles.
/articles/123/ratings
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
/ratings/111
but I want to route it to
/article/123
How can I change the routing in a form_for f.submit button. I have found here something like this:
<% form_for :thing, :url =>
url_for(:action => "update", :id => @thing) do |f| %>
But this do not work for my rails 3.2. Thanks for your help,