E
E
eldar_web2015-09-22 18:29:24
Ruby on Rails
eldar_web, 2015-09-22 18:29:24

How in Ruby on Rails with before_filter you can exclude a certain action from a certain controller ???

I'm talking about this:

before_filter :authorize, :except => [:index, :show]

When we mean index, it means all indexes of all controllers, but how can you exclude a certain action from a certain controller, for example, the controller subscriber action index?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
thepry, 2015-09-22
@eldar_web

In a specific controller write
skip_before_filter :authorize, only: [:index]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question