Fix bone-headed link_to change

This commit is contained in:
Thomas Reynolds 2015-05-15 16:20:40 -07:00
parent b20d855f2c
commit ed5236ef37
3 changed files with 16 additions and 5 deletions

View file

@ -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: