Skip to content

Instantly share code, notes, and snippets.

@harlantwood
Created May 19, 2011 22:13
Show Gist options
  • Save harlantwood/981912 to your computer and use it in GitHub Desktop.
Save harlantwood/981912 to your computer and use it in GitHub Desktop.
Print out invalid rails models
puts Node.all.map{|m| "#{m.id}: #{m.errors.inspect}" unless m.valid?}.compact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment