Action Controller basics
In this guide you will learn how controllers work and how they fit into the request cycle in your application. You will learn how to make use of the many tools provided by Action Controller to work with the session, cookies and filters and how to use the built-in HTTP authentication and data streaming facilities. In the end, we will take a look at some too ls that will be useful once your controllers are ready and working, like how to filter sensitive parameters from the log and how to rescue and deal with exceptions that may be raised during the request.
Articles in this guide
- Introduction (This article)
- What does a controller do?
- Parameters
- Sessions
- Cookies
- Filters
- Verification
- The request and response objects
- HTTP Basic Authentication
- Streaming and file downloads
- Parameter filtering
- Rescue
Thanks to the Ruby on Rails documentation team
This guide was written by Tore Darrell as part of the Ruby on Rails Documentation Project and is provided freely under a Creative Commons licence
