> You mean to say i need to add > 1)map.resources :articles, :collection => [:search] in route.rb
yes > 2)do i need to add method in controller like > > def get > ----- > end no, it should be: def search ... end the :collection => [:search] declares the existence of this search method in the articles controller > > 3)Can we give the tag parameter as text box entry from the > forms(index.html.erb) and that tag parameter can be searched in the > database? > yes, if you have a textbox named "search", then params[:search] will have the text entered in this box. You can give it any other name of course, params will have the value with the same name. (You can see what params are returned in the development.log) To use this for searching: @articles = Article.find_tagged_with(params[:search]) then you should have all artcles with that tag in @articles and can display them in the view --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---