search for: get_current_lang

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

2007 Sep 28
1
Globalize, partial, cache
...> <%= render :partial => ''/header'' %> <% end %> But after this header cached with one language,and changing language no make changing header. So i try this code(method get_cuurent_lang returns string with current lang or default): <% cache "header-#{get_current_lang}" do %> <%= render :partial => ''/header'' %> <% end %> And i got header-us-US, header-ru-RU cached pages. Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are s...