Anybody know why this:
User.find(current_user).update_attribute(:last_subject, params[:subject_id])
results in this:
AREL (0.6ms) UPDATE "users" SET "last_subject" = 4, "encrypted_password" = 'f470e6e76203973146c3b07e8b31c976b19cb23a9bf37485ad1911687cdc7a29', "updated_at" = '2011-10-12 13:43:21.727558' WHERE "users"."id" = 9
For some reason it is updating more than just the :last_subject. Its also changing the user password and the user can no longer log in again.
Thanks,
DC