aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorHrvoje Šimić <shime.ferovac@gmail.com>2012-06-04 01:03:39 +0200
committerHrvoje Šimić <shime.ferovac@gmail.com>2012-06-04 01:03:39 +0200
commit40c8ca5b094dfbdc3b4131492a7a82ea7a17488f (patch)
tree4bfc1348fb948b941a74200ebde39f9f7c82afbd /guides/source
parentd10eb699649f9d7fa7e51ae1b633545d6a55e1ad (diff)
downloadrails-40c8ca5b094dfbdc3b4131492a7a82ea7a17488f.tar.gz
rails-40c8ca5b094dfbdc3b4131492a7a82ea7a17488f.tar.bz2
rails-40c8ca5b094dfbdc3b4131492a7a82ea7a17488f.zip
remove unnecessary text
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/layouts_and_rendering.textile2
1 files changed, 0 insertions, 2 deletions
diff --git a/guides/source/layouts_and_rendering.textile b/guides/source/layouts_and_rendering.textile
index b0a87a5981..55bd521419 100644
--- a/guides/source/layouts_and_rendering.textile
+++ b/guides/source/layouts_and_rendering.textile
@@ -23,8 +23,6 @@ From the controller's point of view, there are three ways to create an HTTP resp
* Call +redirect_to+ to send an HTTP redirect status code to the browser
* Call +head+ to create a response consisting solely of HTTP headers to send back to the browser
-I'll cover each of these methods in turn. But first, a few words about the very easiest thing that the controller can do to create a response: nothing at all.
-
h4. Rendering by Default: Convention Over Configuration in Action
You've heard that Rails promotes "convention over configuration". Default rendering is an excellent example of this. By default, controllers in Rails automatically render views with names that correspond to valid routes. For example, if you have this code in your +BooksController+ class: