Why does my rails rollback when I try to user.save?

Your user model probably has validations which are not satisfied. Since you’ve not posted those I’m unable to really solve your question. To make live easier you can debug why your user isn’t willing to save.

Try running

user.errors.full_messages

which should give you a hint what’s going wrong.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)