Jump To Content

LearnHub




Action Controller: Basics

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

  1. Introduction (This article)
  2. What does a controller do?
  3. Parameters
  4. Sessions
  5. Cookies
  6. Filters
  7. Verification
  8. The request and response objects
  9. HTTP Basic Authentication
  10. Streaming and file downloads
  11. Parameter filtering
  12. 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


Your Comment
Textile is Enabled (View Reference)