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

>
> 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]
> ---------------------------------------------------------------------------
>
If you need two filters, then you need two calls to before_filter.

Fred
> Are there any ways to pin both into a single implementation
>
> Regards,
> Vimal Das
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to