Before_filter - How to?

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs