[英]Declarative_authorization doesn't seem to load?
I'm running bundler with rails 2.3.4. 我正在使用rails 2.3.4运行bundler。
I'm trying to get declarative_authorization to work (I added it to my Gemfile). 我正在尝试使用declarative_authorization(我将它添加到我的Gemfile中)。
The error I'm getting is undefined local variable or method 'filter_resource_access'
. 我得到的错误是
undefined local variable or method 'filter_resource_access'
。
I'm guessing this means that declarative_authorization isn't loading? 我猜这意味着declarative_authorization没有加载? Since I'm using bundler I don't have a
config.gem
line for it in environment.rb
. 由于我使用的是bundler,我在
environment.rb
没有config.gem
行。 If I add it in, though, it throws an error trying to start the server: Uninitialized constant Authorization
. 但是,如果我添加它,它会在尝试启动服务器时抛出错误:
Uninitialized constant Authorization
。
Not too sure what to do... Help would be greatly appreciated! 不太确定该怎么做...帮助将不胜感激!
Are you sure you can use bundler with Rails 2.3.4 ? 您确定可以在Rails 2.3.4中使用bundler吗? Follow the excellent screencast to the T , and there is no reason why it won't work.
按照优秀的截屏视频播放到T,没有理由不这样做。 Declarative Authroization is by far the most powerful authorization solution available.
声明性Authroization是迄今为止最强大的授权解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.