aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>