Forum: Ruby on Rails Validating user inputs in the controller

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Dcd590295f2a350045dce2f322b9fc4f?d=identicon&s=25 Unni Krishnan (unnikrishnanes)
on 2007-07-06 08:55
Is there any way that I can validate user inputs [ forms field values ]
in the controller instead of model?  Or which is the best way for

Please suggest
0900e6a4828bd989f96427082c6c74ca?d=identicon&s=25 Mike Garey (random52k)
on 2007-07-06 09:38
(Received via mailing list)
you can validate in the controller by rolling your own validations if
you really wanted.  But unless you're doing something out of the
ordinary, you should keep your validations in the model, where they

This topic is locked and can not be replied to.