I'm using i18n with given params and not session variable. when im posting my info from a certain form and redirecting to another page, it seems to ignore the:
before_filter :set_locale
def set_locale
I18n.locale = params[:lang] if params.include?('lang')
end
function that is in application controller and i get the requested page with "NO KEY" instead of the dictionary string, only after refreshing the page the keys are loading well.
def save
@category = Category.find(params[:cat])
@category.pools.create(:num_of_players => params[:num_players], ...
:close => close, :badge => badge)
redirect_to ("/pool/game?ids=2&lang=sp")
end