开发者

Declarative_authorization doesn't seem to load?

开发者 https://www.devze.com 2023-01-19 22:53 出处:网络
I\'m running bundler with rails 2.3.4. I\'m trying to get declarative_authorization to work (I added it to my Gemfile).

I'm running bundler with rails 2.3.4.

I'm trying to get declarative_authorization to work (I added it to my Gemfile).

The error I'm getting is undefined local variable or method 'filter_resource_access'.

I'm guessing this means that declarative_authorization isn't loading? Since I'm using bundler I don't have a config.gem line for 开发者_如何转开发it in environment.rb. If I add it in, though, it throws an error trying to start the server: 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 ? Follow the excellent screencast to the T , and there is no reason why it won't work. Declarative Authroization is by far the most powerful authorization solution available.

0

精彩评论

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