` user.update_attributes(:email, email)` should be ` user.update_attributes(:email => email)`

I forgot that `update_attribute` takes two params where `update_attributes` takes a hash.