Damaris Fuentes wrote:
Hi you all, I have a link with two params: <%= link_to "John Smith", { :action => "filtered_list", :value => "John Smith", :property=> "primaryCharacter" }, :post => true %>
The URL appears as: /wiki/filtered_list?value=John+Smith&property=primaryCharacter
My question is, could I get another style in the link, such as: /wiki/filtered_list/John+Smith/primaryCharacter (I mean, in the same way as when we use :id param)
Or even hide the params on the url? (this could be eventually done by using a form with hidden fields, but this is not my idea...)
Damaris, edit routes.rb in config to cutomize how your URL's would look, for example:
map.connect "wiki/:action/:value/:property", :controller => 'your_controller'
hope that helps, Bojan