corrected update error with Rails 3 update_attributes method for db updates, Rails 4 uses update method