Which method is used to specify a filter that is executed before to a controller action?

50. Which method is used to specify a filter that is executed before to a controller action?

  1. before_router
  2. before_action
  3. before_engine
  4. before_component

Answer: B) before_action

Explanation:

before_action method is used to specify a filter that is executed before a controller action.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.