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

Add validation for year #28

Open
migarjo opened this issue Feb 9, 2021 · 1 comment
Open

Add validation for year #28

migarjo opened this issue Feb 9, 2021 · 1 comment

Comments

@migarjo
Copy link

migarjo commented Feb 9, 2021

I noticed that the "Create Book" form allows you enter invalid values for "Year published":

Date isn't validated

Can we add a validation to make sure that doesn't happen?

I think we should make sure we update our tests (in /spec/features/books_spec.rb), then just add a model validation in /app/models/book.rb.

@migarjo migarjo mentioned this issue Feb 9, 2021
2 tasks
@migarjo
Copy link
Author

migarjo commented Feb 9, 2021

DEMO-60

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

No branches or pull requests

1 participant