0 votes
in Ruby by

Which code sample will skip running the login_required "before" filter on the get_posts controller action?

a. before_action :login_required, skip: [:get_posts]

b. skip_before_action :login_required, except: [:get_posts]

c. skip_before_action :login_required, only: [:get_posts]

d. skip_action before: :login_required, only: [:get_posts]

1 Answer

0 votes
by

Which code sample will skip running the login_required "before" filter on the get_posts controller action?

Correct answer is :-  skip_before_action :login_required, only: [:get_posts]

...