No error raised if field doesn't exist #1392

Closed
katgironpe opened this Issue May 29, 2011 · 1 comment

Projects

None yet

1 participant

@katgironpe

Hi.

This is a minor issue: No error raised if the field doesn't exist on the database.

namespace :username do

  desc "Create usernames for users who don't have one"
  task :create => :environment do

     User.all.each do |u|
       u.update_attributes(:update_at=>Time.now)
       p u.to_param
     end
   
     
     
  end
  
end

There's no error. Kinda strange for me.

@katgironpe katgironpe closed this May 29, 2011

update_attributes!
dang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment