阅读背景:

RoR:使用application.rb访问模型

来源:互联网 

i am working on a simple web app which has a user model and role model (among others), and an admin section that contains many controllers. i would like to use a before_filter to check that the user of the user in the session has a 'can_access_admin' flag.i am working on a simple web app which has a us




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: