search for: visitor_menu

Displaying 1 result from an estimated 1 matches for "visitor_menu".

2010 Oct 01
1
I18n.with_options bloc executed TWICE
Hi, to avoid putting the whole locale scope on every I18n.t call I''m trying to use a scope, as stated in the doc (http://guides.rubyonrails.org/active_support_core_extensions.html#with_options) I tried with <%= I18n.with_options :locale => :en, :scope => ''portal.visitor_menu'' do |i18n|%> Try <%= i18n.t :fav_songs %> <% end %> But it produce Try favorite song Try favorite song I mean, the bloc is executed TWICE. The same code exercised under the rails console is executed only ONCE. Anybody have an idea of this strange phenomenom ? Thanks --...