Okay, think I figured it out. Just change <%= f.submit %>
to:
<%= f.submit 'Submit', { controller: 'ratings', action: 'create', method: 'post' } %>
In your routes.rb
file you will also need put '/ratings/create' => 'ratings#create'
or simply resources :ratings
This will route your form submit to ratings#create
which I think is what you want.