Monday, October 10, 2011

Use of before_filter in Rails and the application controller

We make use of before_filter in Rails to call certain methods like user authentication or login; or perform a customized action before we gain access to the controller.

The application controller is used to define common set of methods which would be accessible for use/call by methods belonging to a specific controller.

No comments:

Post a Comment