How can I use before_filter?

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.