A A

Archive | February, 2008

Introduction to Validations & Validation Error Handling in Rails

Friday, February 8, 2008

8 Comments

Validations in Ruby on Rails are essentially nothing more than methods that ensure that the data in a model is valid before saving it to the database. Traditionally, we validate data coming in using conditional expressions (for example, if email != NULL or if passwd==passwd_confirmation). This task is essential, but boring and tedious, but Rails’ [...]