开发者

Server Context Variable

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 !

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜