> 1):method => :get > the above method shoud be defined in controller right.
no, the :method => :get relates to form methods in html, nothing to do with methods in Rails if you defined the routes like map.resources :articles, :collection => [:search] and use the path helper search_articles_path, then the method must be in controler: Articles method: search > 2)above code shoud take tag parameter right so from where it is > getting the tag parameter to search the database? the text entered by the user in the form will be in params[:search] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---