A A
RSS

Archive | February, 2008

Introduction to Validations & Validation Error Handling in Rails

Friday, February 8, 2008

3 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’ [...]SHARETHIS.addEntry({ title: "Introduction to Validations & Validation Error Handling in Rails", url: "http://biodegradablegeek.com/2008/02/introduction-to-validations-validation-error-handling-in-rails/" });