Form in main application layout

i put a search box in application.html.erb and created a controller
but i don’t know how to route to the controller action

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 [email protected] wrote:

For more options, visit

Karthikeyan A K - My Ruby Book