diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-12-30 12:55:38 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-12-31 19:11:00 +0530 |
commit | ba19837a8957492460e32ed545d7938f8d627bc1 (patch) | |
tree | 9b5b08a25a6b623061df6bae6ca678602299b3b0 /railties/guides | |
parent | 0a048f3a4f30aa5660dd7805509b48aca3308b09 (diff) | |
download | rails-ba19837a8957492460e32ed545d7938f8d627bc1.tar.gz rails-ba19837a8957492460e32ed545d7938f8d627bc1.tar.bz2 rails-ba19837a8957492460e32ed545d7938f8d627bc1.zip |
fix a couple of formatting issues
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/getting_started.textile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index 41f483a89b..c986b2edce 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -814,8 +814,7 @@ and links. A few things to note in the view: NOTE. In previous versions of Rails, you had to use +<%=h post.name %>+ 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 +<%= raw -post.name %>+. +3 and above, this is now the default. To get unescaped HTML, you now use <tt><%= raw post.name %></tt>. TIP: For more details on the rendering process, see "Layouts and Rendering in Rails":layouts_and_rendering.html. @@ -828,7 +827,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: |