Question

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!

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top