Hello, I have this code:
- locales.each do | l |
- if l == I18n.locale
- else
= link_to (l == "en" ? "/" : "/#{l}/") do
%span #{l.downcase}
where basically I want for all languages other than English links to have /xx/
in URL but English will point directly to root (/
). For some reason, this condition does not work and I ending up having /en/
instead of /
.