bruz/bookshelf-delivery-example

View on GitHub
apps/web/views/books/update.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Web::Views::Books
  class Update
    include Web::View

    template 'books/edit'

    def form
      Form.new(:book, routes.book_path(book.id), { book: book },
               method: :patch)
    end

    def submit_label
      'Update'
    end
  end
end