problem updating data

The user data are invalid. Replace "@upuser.save" with "@upuser.save!", then it will raise an exception, so you will know what's the problem.

Dmitry