Before_filter - How to?


#1

Hi,

i have functions for which i use before_filter

before_filter :find_customer, :except => [:index, :new, :create]

Do i need to use another before_filter for another set of functions
like

before_filter :countries_list, :only => [:new, :edit]

Are there any ways to pin both into a single implementation

Regards,
Vimal Das


#2

On 4 Mar 2009, at 12:13, vimal wrote:


before_filter :countries_list, :only => [:new, :edit]

If you need two filters, then you need two calls to before_filter.

Fred