SwiftkickWeb / FOODweek

Code for the meal planning app, Food Week
http://www.foodweek.me
0 stars 0 forks source link

Implement model validations for all user-input data #121

Open jon-athan-hall opened 7 years ago

jon-athan-hall commented 7 years ago

We should enforce proper rules for anything the user can input, in regards to size and structure. This is so someone can't attempt to submit some huge block of code as a set of recipe instructions.

Ruby on Rails has plenty of available validators for models. Right now I only see a lot of presence: true and not much else.

http://guides.rubyonrails.org/active_record_validations.html