# Changing users email address

**URL:** <https://meta.discourse.org/t/changing-users-email-address/72119>\
**Category:** Product Support\
**Created:** [15 באוקטובר,‏ 2017,‏ 10:58pm UTC](https://meta.discourse.org/t/changing-users-email-address/72119 "2017-10-15T22:58:21Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![fidelio](https://avatars.discourse-cdn.com/v4/letter/f/f1d935/32.png) [@fidelio](https://meta.discourse.org/u/fidelio)\
**Post date:** [15 במרץ,‏ 2019,‏ 7:59am UTC](https://meta.discourse.org/t/changing-users-email-address/72119/16 "2019-03-15T07:59:23Z")

</div>

For some reason this seems to have stopped working for me. I did an edit on a users email but made a mistake with the name. Now every time I run :UserEmail.find\_by(email: “[oid@example.com](mailto:oid@example.com)”).update(email: “[new@example.com](mailto:new@example.com)”)  
I get: NoMethodError: undefined method `update’ for nil:NilClass  
Has something changed?

---

_[View the full topic](https://meta.discourse.org/t/changing-users-email-address/72119)._
