hi thanks for that in code snippet : <% form_tag(search_articles_path(), :method => :get) do %> <%= label(:search, :tag, "Search:") %><br /> <input name="search" id="tag" type="text" size="17" value='<%= session[:search_keys] %>' style="width:123px;" /> <input type="image" id="bt_zoek" src="/images/search.jpg" alt="search" style="border:none;"/> <% end %
my quieries: 1):method => :get the above method shoud be defined in controller right. 2)above code shoud take tag parameter right so from where it is getting the tag parameter to search the database? can u clarify this. thank u very much On Wed, Dec 3, 2008 at 6:19 PM, Thorsten Müller <[EMAIL PROTECTED]> wrote: > > search_articles_path would be generated by RESTful routing like (in > routes.rb): > > map.resources :articles, :colection => [:search] > > but you can use any other path helper instead or a string with the url > > > --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---