Ruby on Rails
Thursday, January 15, 2015
Like this .
<%= form_tag(result_path(:q => params[:q]), :method => :get) do %>
<%text_field :term %>
<div><%= submit_tag 'Search' %></div> <% end %>
On Thursday, 15 January 2015 16:24:32 UTC+5:30, Melb01 wrote:
thx, I'll try this
but how can I fill the target form with the same term too in result page (I am trying to reproduce the google search experience )
rgds,
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+unsubscribe@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/51f69c83-fc62-4baf-bd79-9fd72393db31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment