Created
November 2, 2014 09:31
-
-
Save nitishparkar/b67fd6253da97cc7bfba to your computer and use it in GitHub Desktop.
Rails: Displaying validation errors in admin panel using haml and bootstrap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.col-lg-12 | |
- if @post.errors.any? | |
.alert.alert-danger | |
%ul | |
- @post.errors.full_messages.each do |message| | |
%li= message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment