Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Story 12, Add a New Book to the System #17

Open
7 tasks
iandouglas opened this issue May 3, 2019 · 0 comments
Open
7 tasks

User Story 12, Add a New Book to the System #17

iandouglas opened this issue May 3, 2019 · 0 comments
Labels

Comments

@iandouglas
Copy link
Contributor

iandouglas commented May 3, 2019

As a Visitor,
When I visit the book index page,
I see a link that allows me to add a new book.
When I click that link, I am taken to a new book path.
I can fill in a form to add a new book.
The form includes the following items:
- title
- year book was published
- number of pages (0 or higher)
- image of the book cover (optional, can be left blank)
- a list of authors (see notes below)

When I submit the form, I am taken to that book's show page.

Book titles should be converted to Title Case before saving.
Book titles should be unique within the system.
For authors, a comma-separated list of names should be entered,
and each author will be added to the database.
Authors added to the database should have their names converted
to Title Case.
Author Names should be unique within the system.
If image field is left blank, a default image should be set.

DO THESE STORIES FIRST:

  • User Story 10, Book Show Page

Checklist:

  • base code tests are written
  • base code is written to pass tests
  • edge case ("sad path") tests written
  • edge case code written
  • code is reviewed
  • branch is merged
  • all tests still pass

child of #18

child of #33

depends on #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants