-
-
Save nicedawg/0cb4848e5553d60b366d0ecd8f2a1d4d to your computer and use it in GitHub Desktop.
[Beginning Rails 6] Listing 9-8. The Template in app/views/comments/fail_create.js.erb
This file contains 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
alert("<%= @comment.errors.full_messages.to_sentence.html_safe %>"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment