简体   繁体   中英

Declarative_authorization doesn't seem to load?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM