3. r
o s t
p n
p o
e e u si
S n
t
c Exiv t
A e y
a g
r
o :Ar i r n
: :C : p
r o u
: :G
http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Grouping.html
5. Follow Along in IRB!
• You’re going to need to use ActiveSupport:
•require ‘active_support’
• Note: require ‘activesupport’ (no underscore) is deprecated
for removal in Rails 3.
19. split
• Divide an array based on:
• delimiter
• or block
• but not both
• a block is used if present
• This is the third and final method in
ActiveSupport::CoreExtensions::Array::
Grouping