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
Might be like this
<%= form_tag {controller: controller_name, action: action_name } do %> …
…
<% end %>
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
Might be like this
<%= form_tag {controller: controller_name, action: action_name } do %> …
…
<% end %>