This is my code:
before_filter :authorize, :except=>:login
This is one exception, “login” but I want to add more exceptions. How
can I do this?
This is my code:
before_filter :authorize, :except=>:login
This is one exception, “login” but I want to add more exceptions. How
can I do this?
On Nov 30, 2008, at 4:48 PM, Zhao Yi wrote:
This is my code:
before_filter :authorize, :except=>:login
This is one exception, “login” but I want to add more exceptions. How
can I do this?
before_filter :authorize, :except=>[:login, :reset_password]
Steve R. wrote:
On Nov 30, 2008, at 4:48 PM, Zhao Yi wrote:
This is my code:
before_filter :authorize, :except=>:login
This is one exception, “login” but I want to add more exceptions. How
can I do this?before_filter :authorize, :except=>[:login, :reset_password]
it works, thanks very much.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs