views:

14

answers:

1

I'm having the following string in my application_controller:

  before_filter :login_required, :only => [ :edit, :update, :show, :index ] 

But in case with :show, I need to put {:controller => 'users', :action => 'show'} in exception. Is it possible to do that?

+1  A: 

Options:

  • Use a skip_before_filter in the UsersController

    skip_before_filter :login_required, :only => :show

  • Applying the before_filter individually to each controller, if your exceptional cases grow.

Chubas