Skip to content

Commit 727a5a7

Browse files
author
Jeff Cohen
committed
Replace old wording about http requests
1 parent 31bb347 commit 727a5a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.rdoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ can also be ordinary Ruby classes, or Ruby classes that implement a set of inter
2020
provided by the ActiveModel module. You can read more about Active Record in its
2121
{README}[link:files/activerecord/README_rdoc.html].
2222

23-
The Controller layer handles incoming requests HTTP requests (such as Save New Account,
24-
Update Product, Show Post). Controllers are responsible for providing a suitable response
25-
back to the client (usually a web browser, but possibly an JSON or XML API client, etc.).
26-
Controllers manipulate models and render the appropriate view templates to generate the HTTP response.
23+
The Controller layer is responsible for handling incoming HTTP requests and providing a
24+
suitable response. Usually this means returning HTML, but Rails controllers can also
25+
generate XML, JSON, PDFs, mobile-specific views, and more. Controllers manipulate models
26+
and render view templates in order to generate the appropriate HTTP response.
2727

2828
In Rails, the Controller and View layers are handled together by Action Pack.
2929
These two layers are bundled in a single package due to their heavy interdependence.

0 commit comments

Comments
 (0)