Skip to content

Instantly share code, notes, and snippets.

@matiasmoya
Created January 28, 2015 21:13
Show Gist options
  • Save matiasmoya/49a6a706f0046b738d6e to your computer and use it in GitHub Desktop.
Save matiasmoya/49a6a706f0046b738d6e to your computer and use it in GitHub Desktop.
Rails model errors
= form_for @certificate
- if @certificate.errors.any?
ul.error-list
- @certificate.errrors.each do |error|
li.error-item #{error}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment