elanalynn/book-club

View on GitHub
app/views/notes/_form.html.slim

Summary

Maintainability
Test Coverage
= form_for @note do |f|
  - if @note.errors.any?
    #error_explanation
      h2 = "#{pluralize(@note.errors.count, "error")} prohibited this note from being saved:"
      ul
        - @note.errors.full_notes.each do |note|
          li = note

  .field
    = f.label :body
    = f.text_area :body
  .actions = f.submit