Your are here: Home // Posts Tagged With controller
Rails Controllers: Before, After, and Around Filters
Podcast: Play in new window
| Download
In your Rails controllers you have filters you can place on incoming requests, outgoing responses, or wrap around your actions.
Before filters are run on requests before the request gets to the controller’s action. It can return a response itself and completely bypass the action.
The most common use of before filters is validating a user’s authentication...
002 RC Model View Controller (MVC)
Podcast: Play in new window
| Download
This is a brief explanation of how Rails implements the MVC design pattern to create such an awesome framework for building websites.
In a nutshell, when a request comes to a Ruby on Rails website, it’s handed the dispatcher. The dispatcher consults the routes provided in the application to determine which Controller and action to pass the request to....

