I am trying to determine whether to show the Spanish or English button in my web application.
<% if I18n.locale == 'es' %> <a href="<%= set_english_path %>" class="thin">English</a> <% else %> <a href="<%= set_spanish_path %>" class="thin">Spanish</a> <% end %>
The if condition always fails, and the Spanish button is always displayed.
RubyMine shows this when checking (during debugging):

So why is the failure of comparison?
ruby symbols ruby-on-rails ruby-on-rails-3 internationalization symbol
sergserg
source share