RubyLearning / ProjectTrak / vendor / rails / railties / doc / guides / source / actioncontroller_basics / index.txt

Action Controller basics
=======================

In this guide you will learn how controllers work and how they fit into the request cycle in your application. After reading this guide, you will be able to:

* Follow the flow of a request through a controller
* Understand why and how to store data in the session or cookies
* Work with filters to execute code during request processing
* Use Action Controller's built-in HTTP authentication
* Stream data directly to the user's browser
* Filter sensitive parameters so they do not appear in the application's log
* Deal with exceptions that may be raised during request processing

include::introduction.txt[]

include::methods.txt[]

include::params.txt[]

include::session.txt[]

include::cookies.txt[]

include::filters.txt[]

include::verification.txt[]

include::csrf.txt[]

include::request_response_objects.txt[]

include::http_auth.txt[]

include::streaming.txt[]

include::parameter_filtering.txt[]

include::rescue.txt[]

include::changelog.txt[]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.