How can I use before_filter?


#1

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?


#2

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]


#3

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.