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.
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