I searched everywhere for a simple input validation library for Ruby. Everything seems to point to ActiveRecord (or similar). I do not use Rails, I use Sinatra without ORM. What is the best approach to validate user input (without binding directly to the model layer)? Simple things like string length, numeric, etc. Preferably with a good mechanism for reporting error messages.
input ruby validation sinatra
Franky-D Aug 05 '10 at 15:44 2010-08-05 15:44
source share