# Is notify resevered word?

**URL:** <https://www.ruby-forum.com/t/is-notify-resevered-word/121218>\
**Category:** Rails\
**Created:** [November 25, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/is-notify-resevered-word/121218 "2007-11-25T15:07:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [November 25, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/is-notify-resevered-word/121218/1 "2007-11-25T15:07:45Z")

</div>

Hi,

When I added this association…

class User \< ActiveRecord::Base  
has\_one :notify  
end

…and tried then to update column in User table it will call queries  
for notify table automatic?

## Output

User Columns (0.041488) SHOW FIELDS FROM `users`  
User Load (0.001544) SELECT \* FROM `users` WHERE (`users`.`nickname`  
= ‘jamal’) LIMIT 1  
SQL (0.000373) BEGIN  
SQL (0.001843) SHOW TABLES  
User::Notify Load (0.001113) SELECT \* FROM `user_notifies` WHERE  
(user\_notifies.user\_id = 1) LIMIT 1  
User::Notify Load (0.001009) SELECT \* FROM `user_notifies` WHERE  
(user\_notifies.user\_id = 1) LIMIT 1  
User::Notify Load (0.000996) SELECT \* FROM `user_notifies` WHERE  
(user\_notifies.user\_id = 1) LIMIT 1  
User::Notify Load (0.000862) SELECT \* FROM `user_notifies` WHERE  
(user\_notifies.user\_id = 1) LIMIT 1  
User::Notify Load (0.000849) SELECT \* FROM `user_notifies` WHERE  
(user\_notifies.user\_id = 1) LIMIT 1  
User::Notify Load (0.000799) SELECT \* FROM `user_notifies` WHERE  
(user\_notifies.user\_id = 1) LIMIT 1  
User Update (0.000362) UPDATE `users` SET `created_at` = ‘2007-11-17  
19:02:16’, `times_logged_in` = 0, `hashed_password` =  
‘e0195770807aa8c82b0b128d9c0423b5ad035172’, `logged_at` = ‘2007-11-25  
14:58:56’, `nickname` = ‘Jamal’, `email` = ‘removed\_email\_address@domain.invalid’ WHERE `id` =  
1  
User::Notify Load (0.000768) SELECT \* FROM `user_notifies` WHERE  
(user\_notifies.user\_id = 1) LIMIT 1  
User::Notify Load (0.000781) SELECT \* FROM `user_notifies` WHERE  
(user\_notifies.user\_id = 1) LIMIT 1

* * *

This is how I updated the column.

> > user = User.find\_by\_nickname ‘jamal’  
> > =\> #\<User id: 1, email: “removed\_email\_address@domain.invalid”, nickname: “Jamal”,  
> > hashed\_password: “e0195770807aa8c82b0b128d9c0423b5ad035172”, logged\_at:  
> > “2007-11-25 14:55:52”, created\_at: “2007-11-17 19:02:16”,  
> > times\_logged\_in: 0\>
> 
> > user.logged\_at = Time.now  
> > =\> Sun Nov 25 14:58:56 +0100 2007
> 
> > user.save  
> > =\> true

Is notify resevered word? or is there something I missed 🙂

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [November 26, 2007, 11:25am UTC](https://www.ruby-forum.com/t/is-notify-resevered-word/121218/2 "2007-11-26T11:25:02Z")

</div>

Yes it is. I felt similar pain once!

[http://thinedgeofthewedge.blogspot.com/2006/06/notify.html](http://thinedgeofthewedge.blogspot.com/2006/06/notify.html)

On Nov 25, 2:07 pm, Jamal S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [November 26, 2007, 3:19pm UTC](https://www.ruby-forum.com/t/is-notify-resevered-word/121218/3 "2007-11-26T15:19:54Z")

</div>

John W. wrote:

> Yes it is. I felt similar pain once!
> 
> [http://thinedgeofthewedge.blogspot.com/2006/06/notify.html](http://thinedgeofthewedge.blogspot.com/2006/06/notify.html)
> 
> On Nov 25, 2:07 pm, Jamal S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Thanks 😃

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [November 27, 2007, 11:05am UTC](https://www.ruby-forum.com/t/is-notify-resevered-word/121218/4 "2007-11-27T11:05:37Z")

</div>

Ryan wrote:

> You could try notification instead of notify.

I was trying to find another word, you just helped me out 😃

Thanks…

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [November 27, 2007, 12:36am UTC](https://www.ruby-forum.com/t/is-notify-resevered-word/121218/5 "2007-11-27T00:36:07Z")

</div>

You could try notification instead of notify.
