Form in main application layout

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 %>

On Tue, Jan 5, 2016 at 6:10 AM, fugee ohu [email protected] wrote:

https://groups.google.com/d/msgid/rubyonrails-talk/ad988bc6-8e5a-48e9-8a26-f4fc320ae187%40googlegroups.com

https://groups.google.com/d/msgid/rubyonrails-talk/ad988bc6-8e5a-48e9-8a26-f4fc320ae187%40googlegroups.com?utm_medium=email&utm_source=footer

.
For more options, visit https://groups.google.com/d/optout.


Karthikeyan A K
https://goo.gl/NYcfo3 - My Ruby Book

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs