diff options
author | Pablo Ifran <pabloifran@gmail.com> | 2012-01-02 09:16:38 -0200 |
---|---|---|
committer | Pablo Ifran <pabloifran@gmail.com> | 2012-01-02 09:16:38 -0200 |
commit | c8fe025965ceea0618ee7b620ca04ca8545d210b (patch) | |
tree | 3d0b83dc449d6170ede097c919430ce1cfb27607 /railties/guides/source/getting_started.textile | |
parent | 24b1fd21f0390bdf4d0dc96a14abc17a7a24219d (diff) | |
parent | dc64aec7fa54cb34353f0c476136abf4191273fc (diff) | |
download | rails-c8fe025965ceea0618ee7b620ca04ca8545d210b.tar.gz rails-c8fe025965ceea0618ee7b620ca04ca8545d210b.tar.bz2 rails-c8fe025965ceea0618ee7b620ca04ca8545d210b.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/guides/source/getting_started.textile')
-rw-r--r-- | railties/guides/source/getting_started.textile | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index 54f3c74695..9150c4b8d6 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 +<%=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. @@ -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: @@ -1870,7 +1869,6 @@ free to consult these support resources: * The "Ruby on Rails Tutorial":http://railstutorial.org/book * The "Ruby on Rails mailing list":http://groups.google.com/group/rubyonrails-talk * The "#rubyonrails":irc://irc.freenode.net/#rubyonrails channel on irc.freenode.net -* The "Rails Wiki":http://wiki.rubyonrails.org/ Rails also comes with built-in help that you can generate using the rake command-line utility: |