aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
diff options
context:
space:
mode:
authorAvnerCohen <israbirding@gmail.com>2012-11-07 16:50:10 +0200
committerAvnerCohen <israbirding@gmail.com>2012-11-07 16:50:10 +0200
commit08d3e534ab860f4a1ecef85ac8f707fd56a66d53 (patch)
treef449890c5c70ec935342584c7d38a853ae3a0366 /actionpack/lib/abstract_controller
parent9ef88380afb9063a5ce5ba9b7f1126580c7c51ea (diff)
downloadrails-08d3e534ab860f4a1ecef85ac8f707fd56a66d53.tar.gz
rails-08d3e534ab860f4a1ecef85ac8f707fd56a66d53.tar.bz2
rails-08d3e534ab860f4a1ecef85ac8f707fd56a66d53.zip
Hash Syntax to 1.9 converison
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r--actionpack/lib/abstract_controller/layouts.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/abstract_controller/layouts.rb b/actionpack/lib/abstract_controller/layouts.rb
index c1b3994035..12da273af9 100644
--- a/actionpack/lib/abstract_controller/layouts.rb
+++ b/actionpack/lib/abstract_controller/layouts.rb
@@ -170,7 +170,7 @@ module AbstractController
# <tt>:only</tt> and <tt>:except</tt> options can be passed to the layout call. For example:
#
# class WeblogController < ActionController::Base
- # layout "weblog_standard", :except => :rss
+ # layout "weblog_standard", except: :rss
#
# # ...
#
@@ -180,7 +180,7 @@ module AbstractController
# be rendered directly, without wrapping a layout around the rendered view.
#
# Both the <tt>:only</tt> and <tt>:except</tt> condition can accept an arbitrary number of method references, so
- # #<tt>:except => [ :rss, :text_only ]</tt> is valid, as is <tt>:except => :rss</tt>.
+ # #<tt>except: [ :rss, :text_only ]</tt> is valid, as is <tt>except: :rss</tt>.
#
# == Using a different layout in the action render call
#
@@ -192,7 +192,7 @@ module AbstractController
# layout "weblog_standard"
#
# def help
- # render :action => "help", :layout => "help"
+ # render action: "help", layout: "help"
# end
# end
#