Hi there,
I''m using a form tag to implement a search text_field.
<% form_tag catalogues_path(:select => params[:select]), :method
=> "get", :class => "search_form" do %>
The problem is the catalogues_path which should consist a select
param. Unfortunately the select param doesn''t get handed over in the
upper example...
Any hint will be appreciated!
Thanks
Makrus
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Makrus, as far as I understood your problem, you don''t have to
include :select in your path manually. Since your form uses :get
method, params will be sent via url automatically, you have only to
name them properly:
<% form_tag catalogues_path, :method => :get do %>
<%= text_field_tag :select, params[:select] %> <%submit_tag
"Find", :name => '''' %>
<% end %>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.