Ruby: getting "localjumperror: no block given" error

Example:

[1,2,3].each
This error occurs when a method that expects a block doesn't receive one.

Solution:

[1,2,3].each do |i|
  puts i
end

Beginner's Guide to Ruby