Skip to content

Instantly share code, notes, and snippets.

@ccjr
Created April 3, 2010 21:36
Show Gist options
  • Save ccjr/354866 to your computer and use it in GitHub Desktop.
Save ccjr/354866 to your computer and use it in GitHub Desktop.
[Beginning Rails 3] Listing 8-9. The template in app/views/comments/fail_create.js.erb
alert("<%= @comment.errors.full_messages.to_sentence %>");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment