Add parameter to url


#1

If url is http://mydomain.com/blog/tags

How can I make a link, that add parameter to url?

Ex: http://mydomain.com/blog/tags?locale=de

And not a: http://mydomain.com/?locale=de

<%= link_to “My link”, :locale => ‘de’ %> Remove “blog/tags” from url.


#2

<%= link_to “Link”, blog_path(:locale => “de”) %>

or

<%= link_to “Link”, :controller => “blog”, :action => “show”, :locale
=> “de” %>