Re: [Rails] form in main application layout

2016-01-04 Thread Karthikeyan A K
Might be like this <%= form_tag {controller: controller_name, action: action_name } do %> .. .. <% end %> On Tue, Jan 5, 2016 at 6:10 AM, fugee ohu wrote: > i put a search box in application.html.erb and created a controller > action, but i don't know how to route to the controller act

[Rails] form in main application layout

2016-01-04 Thread fugee ohu
i put a search box in application.html.erb and created a controller action, but i don't know how to route to the controller action -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails f