Skip to content

Instantly share code, notes, and snippets.

@akwiatkowski
Last active January 10, 2017 09:31
Show Gist options
  • Save akwiatkowski/52da27ede20da27ea6627a3a722b8225 to your computer and use it in GitHub Desktop.
Save akwiatkowski/52da27ede20da27ea6627a3a722b8225 to your computer and use it in GitHub Desktop.
result = db.query("select * from events;")
result.each do |row|
end
# too many block arguments (given 1, expected maximum 0)
result.each
# 'PG::ResultSet#each' is expected to be invoked with a block, but no block was given
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment