I need to set up a contex开发者_Python百科t variable for rails in a way that I can store it and use on all controllers and actions in my app.
Basically it's a server that have several games. The user chooses 1 game and that goes on current_game
. Depending on the value of current_game
the app loads different stuff from the data base.
Is there a way I can make it?
May be you can using session variables, read the documentation !
精彩评论