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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With