On Mar 3, 8:17 pm, Fresh Mix <[email protected]> wrote:

> returns this html:
>
> en
> <a href="/welcome/index?locale=en">in english</a>
>
> Why? If I18n.locale == 'en'  there should not be link.
>
> So why "if (I18n.locale != 'en')" is true ?
>

I18n.locale is a symbol and :en is not == to 'en'

Fred

> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to