Add parameter to url

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.

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


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs