1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix a couple of formatting issues

This commit is contained in:
Vijay Dev 2011-12-30 12:55:38 +05:30
parent c3224db6ae
commit b6aa300e70

View file

@ -811,8 +811,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 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 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 3 and above, this is now the default. To get unescaped HTML, you now use <tt>&lt;%= raw post.name %&gt;</tt>.
post.name %&gt;+.
TIP: For more details on the rendering process, see "Layouts and Rendering in TIP: For more details on the rendering process, see "Layouts and Rendering in
Rails":layouts_and_rendering.html. 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+ a layout's HTML. In previous versions of Rails, the +rails generate scaffold+
command would automatically create a controller specific layout, like command would automatically create a controller specific layout, like
+app/views/layouts/posts.html.erb+, for the posts controller. However this has +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 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 this layout in your editor and modify the +body+ tag to include the style directive
below: below: