ruby on rails 3 - simple_form - how to specify form's action attribute -


i using simple_form gem , have ordinary rails scaffold working - able update/create/destroy records.

when add views in application <%= yield %> issue occurred - simple_form gem rendering form action "/" new action , not able create new records.

in controller, path create action

 #post /webinars 

so, edit action of form "/" "/webinars" (using browser console) , create record.

i suppose should override action of somehow, not able find how. real problem?

<%= simple_form_for @user, url: '/webinars' %>   ... <% end %> 

Comments

Popular posts from this blog

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -