Fix bone-headed link_to change
This commit is contained in:
parent
b20d855f2c
commit
ed5236ef37
3 changed files with 16 additions and 5 deletions
|
@ -25,7 +25,7 @@ Feature: i18n Links
|
|||
Page: <%= t(:msg) %>
|
||||
<% data.pages.each_with_index do |p, i| %>
|
||||
<%= link_to "Current #{p}", "/#{p}" %>
|
||||
<%= link_to "Other #{p}", "/#{p}", ::I18n.locale == :en ? :es : :en %>
|
||||
<%= link_to "Other #{p}", "/#{p}", lang: ::I18n.locale == :en ? :es : :en %>
|
||||
<% end %>
|
||||
"""
|
||||
And a file named "config.rb" with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue