aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-12-30 12:55:38 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-12-31 15:17:53 +0530
commitb6aa300e70c5cc92df8da51cb88d23f0041b421d (patch)
tree6a0407cdce3a5fe51d35cb619b3fcead796f2ca0 /railties/guides
parentc3224db6aea90bb86b8d3e492b2a60f5c768132a (diff)
downloadrails-b6aa300e70c5cc92df8da51cb88d23f0041b421d.tar.gz
rails-b6aa300e70c5cc92df8da51cb88d23f0041b421d.tar.bz2
rails-b6aa300e70c5cc92df8da51cb88d23f0041b421d.zip
fix a couple of formatting issues
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/getting_started.textile5
1 files changed, 2 insertions, 3 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index 54f3c74695..52ffa0c84c 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -811,8 +811,7 @@ and links. A few things to note in the view:
NOTE. In previous versions of Rails, you had to use +&lt;%=h post.name %&gt;+ so
that any HTML would be escaped before being inserted into the page. In Rails
-3.0+, this is now the default. To get unescaped HTML, you now use +&lt;%= raw
-post.name %&gt;+.
+3 and above, this is now the default. To get unescaped HTML, you now use <tt>&lt;%= raw post.name %&gt;</tt>.
TIP: For more details on the rendering process, see "Layouts and Rendering in
Rails":layouts_and_rendering.html.
@@ -825,7 +824,7 @@ Rails renders a view to the browser, it does so by putting the view's HTML into
a layout's HTML. In previous versions of Rails, the +rails generate scaffold+
command would automatically create a controller specific layout, like
+app/views/layouts/posts.html.erb+, for the posts controller. However this has
-been changed in Rails 3.0+. An application specific +layout+ is used for all the
+been changed in Rails 3. An application specific +layout+ is used for all the
controllers and can be found in +app/views/layouts/application.html.erb+. Open
this layout in your editor and modify the +body+ tag to include the style directive
below: