aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/active_support_overview.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-09-16 01:15:14 +0200
committerXavier Noria <fxn@hashref.com>2009-09-16 01:15:14 +0200
commitc37034d8e8e1d54a30c80591908724aa5119d4df (patch)
tree1268685381d170e33f47abb34e5e0f8119139924 /railties/guides/source/active_support_overview.textile
parent68e433a3233d958335385a46af03bf50238a0d6c (diff)
downloadrails-c37034d8e8e1d54a30c80591908724aa5119d4df.tar.gz
rails-c37034d8e8e1d54a30c80591908724aa5119d4df.tar.bz2
rails-c37034d8e8e1d54a30c80591908724aa5119d4df.zip
AS guide: str[0, 1] -> str.at(0) in an example
Diffstat (limited to 'railties/guides/source/active_support_overview.textile')
-rw-r--r--railties/guides/source/active_support_overview.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_overview.textile b/railties/guides/source/active_support_overview.textile
index ac326d5a24..4fa7a85464 100644
--- a/railties/guides/source/active_support_overview.textile
+++ b/railties/guides/source/active_support_overview.textile
@@ -796,7 +796,7 @@ This iterator takes a block and builds an ordered hash with its return values as
<ruby>
entries_by_surname_initial = address_book.group_by do |entry|
- entry.surname[0, 1].upcase
+ entry.surname.at(0).upcase
end
</ruby>