Forum: Ruby on Rails Add parameter to url

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fresh M. (Guest)
on 2009-03-20 18:53
If url is

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


And not a:

<%= link_to "My link", :locale => 'de' %> Remove "blog/tags" from url.
Freddy A. (Guest)
on 2009-03-20 19:24
(Received via mailing list)
<%= link_to "Link", blog_path(:locale => "de") %>


<%= link_to "Link", :controller => "blog", :action => "show", :locale
=> "de" %>
This topic is locked and can not be replied to.