user146297
user146297

Reputation: 57

Authlogic and declarative authorizsation

I have a rails application based on Authlogic with LDAP for authentification, and declarative authorization for roles requirements.

The problem is when i put filter resource_access in my controller, i got this error :

undefined method `current_user'....

I had define the method current_user on the application_controller

Any help ?

Thank you

Upvotes: 0

Views: 105

Answers (1)

mdemmitt
mdemmitt

Reputation: 157

I can't recommend this screencast highly enough. It takes you step-by-step through how to setup authlogic for your rails app -- including defining the current_user variable.

Upvotes: 1

Related Questions