diff options
author | AvnerCohen <israbirding@gmail.com> | 2012-10-29 13:10:53 +0200 |
---|---|---|
committer | AvnerCohen <israbirding@gmail.com> | 2012-10-29 13:10:53 +0200 |
commit | be4a4cd38ff2c2db0f6b69bb72fb3557bd5a6e21 (patch) | |
tree | d7b6d29f22d5ce3aeef2a293b8ea5d55f9257868 /actionpack/lib/action_view/helpers/record_tag_helper.rb | |
parent | 20c574ca85e380d06c2e0f148301177a9b197b2e (diff) | |
download | rails-be4a4cd38ff2c2db0f6b69bb72fb3557bd5a6e21.tar.gz rails-be4a4cd38ff2c2db0f6b69bb72fb3557bd5a6e21.tar.bz2 rails-be4a4cd38ff2c2db0f6b69bb72fb3557bd5a6e21.zip |
Hash Syntax to 1.9 related changes
Diffstat (limited to 'actionpack/lib/action_view/helpers/record_tag_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/record_tag_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/record_tag_helper.rb b/actionpack/lib/action_view/helpers/record_tag_helper.rb index dded9aab7c..33194250b7 100644 --- a/actionpack/lib/action_view/helpers/record_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/record_tag_helper.rb @@ -7,7 +7,7 @@ module ActionView # Produces a wrapper DIV element with id and class parameters that # relate to the specified Active Record object. Usage example: # - # <%= div_for(@person, :class => "foo") do %> + # <%= div_for(@person, class: "foo") do %> # <%= @person.name %> # <% end %> # @@ -19,7 +19,7 @@ module ActionView # get iterated over and yield each record as an argument for the block. # For example: # - # <%= div_for(@people, :class => "foo") do |person| %> + # <%= div_for(@people, class: "foo") do |person| %> # <%= person.name %> # <% end %> # @@ -72,7 +72,7 @@ module ActionView # additional HTML attributes. If you specify a <tt>:class</tt> value, it will be combined # with the default class name for your object. For example: # - # <%= content_tag_for(:li, @person, :class => "bar") %>... + # <%= content_tag_for(:li, @person, class: "bar") %>... # # produces: # |