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 <fugee...@gmail.com> 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 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 from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > 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 -- 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 from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJR%2B9kaHiPr-LG_c186xxE2nyuc%2Bn6hjNSCcVOqGnN1xzQCEBQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.