What are the different filters used in ruby on rails?

devquora
devquora

Posted On: Feb 22, 2018

 

The methods which are used before and after the action of the controller method are executed. It ensures that the code runs with the given action method which is called. Three types of filters are supported by rails. They are:
  • Before filters: these filters are executed before the execution of the code in the action controller.
  • After filters: these filters are executed after the execution of the code in the action controller.
  • Around filters: these are executed both before and after the execution of the code present in the action controller.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Ruby on Rails Interview Questions

    Mention all the naming conventions in ruby on rails.

    Following is a list of some naming conventions used in ruby on rails:Variables– it is used for the declaration of v..

    Ruby on Rails Interview Questions

    Explain the features of ruby on rails.

    Some of the features of ruby on rails are listed below-Meta-programming: code generation is used but for heavy liftin..

    Ruby on Rails Interview Questions

    How is the model view controller framework used in ruby on rails?

    The web development is usually divided into three subsystems closely integrated to each other. They are: –Model (ac..