FAC-11 / week6-kidneybeans

Helpful site to find coffee and food near FAC!
https://kidneybeans.herokuapp.com/
0 stars 2 forks source link

Validating user input #54

Open rachaelcodes opened 7 years ago

rachaelcodes commented 7 years ago

At the moment, I can post in reviews that contain blanks for name and location (which your schema says can't be null) - I guess it's not causing an error because they're empty strings?

However, trying to put in 123 stars doesn't work (I guess because of the 'SMALLINT' part of the schema), but there is no message why.

So what would be useful is some kind of validator, with a message sent back to the user.