This is my first post and I’m sure the question is noobish but I swear
I’ve googled intensively and couldn’t find a smart solution to my
I’m developing a webapp in wich you will be able to set the language
of it’s layout by clicking on a link. The name of the language will be
stored in a session variable, so what this link has to do is 1st
change that session variable and 2nd, reload the page you are in.
Since you’ll be able to do this in any page of the webapp, I thought I
would place the setter and getter to the variable in the Application
controller like this:
class ApplicationController < ActionController::Base
session[:application_language] = language
and now I just need to come up with a helper that will let me access
this functions and reload the page. something like a link_to. Can
someone help me?