diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2015-01-03 14:58:17 +0000 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2015-01-03 14:58:17 +0000 |
commit | 4b9dba99d65b1bd27576b16a68d7d18522bae9ea (patch) | |
tree | 4672dd2377a4e4ef71992c5478f2606f5d86e371 /actionpack/lib/abstract_controller/rendering.rb | |
parent | 02e72a49d1c99084fef2c78c3a194e03b879099d (diff) | |
parent | 7cc145ec65167084e8b05d9462eaf94534fa0168 (diff) | |
download | rails-4b9dba99d65b1bd27576b16a68d7d18522bae9ea.tar.gz rails-4b9dba99d65b1bd27576b16a68d7d18522bae9ea.tar.bz2 rails-4b9dba99d65b1bd27576b16a68d7d18522bae9ea.zip |
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'actionpack/lib/abstract_controller/rendering.rb')
-rw-r--r-- | actionpack/lib/abstract_controller/rendering.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index 9d10140ed2..585d20c56c 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -18,7 +18,7 @@ module AbstractController include ActionView::ViewPaths # Normalize arguments, options and then delegates render_to_body and - # sticks the result in self.response_body. + # sticks the result in <tt>self.response_body</tt>. # :api: public def render(*args, &block) options = _normalize_render(*args, &block) @@ -30,11 +30,11 @@ module AbstractController # Raw rendering of a template to a string. # # It is similar to render, except that it does not - # set the response_body and it should be guaranteed + # set the +response_body+ and it should be guaranteed # to always return a string. # - # If a component extends the semantics of response_body - # (as Action Controller extends it to be anything that + # If a component extends the semantics of +response_body+ + # (as ActionController extends it to be anything that # responds to the method each), this method needs to be # overridden in order to still return a string. # :api: plugin @@ -73,8 +73,9 @@ module AbstractController } end - # Normalize args by converting render "foo" to render :action => "foo" and - # render "foo/bar" to render :file => "foo/bar". + # Normalize args by converting <tt>render "foo"</tt> to + # <tt>render :action => "foo"</tt> and <tt>render "foo/bar"</tt> to + # <tt>render :file => "foo/bar"</tt>. # :api: plugin def _normalize_args(action=nil, options={}) if action.is_a? Hash |