While working on a functionality, I came across a situation where I was required to update the model which had a lot of validations specified. It is possible to update a single attribute and save the record without going through the normal validation procedure using update_attribute but when you need to do it for multiple […]Read more "Rails update attributes without validations"
Forms in rails let you show error messages when you create or update the records. In certain situations, I came across a weird issue where the error messages on the view were being shown in a strange format. I expected to see There were problems with the following fields: Name can’t be blank Instead it […]Read more "Ruby on Rails – Strange validation errors"
Just came across the Ruby on Rails 3.0 Beta release. There are a lot of exciting new features and it all seems exciting. Something that caught my eye was Active Model and new validations. So here I am, jotting them down for myself and all those who might be interested in reading about it. New […]Read more "Ruby on Rails 3.0 – Active Model and New Validations"