# Support for updating a belongs to association from the foreign key 	(without saving and reloading the record)

**URL:** <https://discuss.rubyonrails.org/t/support-for-updating-a-belongs-to-association-from-the-foreign-key-without-saving-and-reloading-the-record/34087>\
**Category:** rubyonrails-core\
**Created:** [September 7, 2008, 2:05pm UTC](https://discuss.rubyonrails.org/t/support-for-updating-a-belongs-to-association-from-the-foreign-key-without-saving-and-reloading-the-record/34087 "2008-09-07T14:05:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Leighton](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Jon\_Leighton](https://discuss.rubyonrails.org/u/Jon_Leighton)\
**Post date:** [September 7, 2008, 2:05pm UTC](https://discuss.rubyonrails.org/t/support-for-updating-a-belongs-to-association-from-the-foreign-key-without-saving-and-reloading-the-record/34087/1 "2008-09-07T14:05:58Z")

</div>

Hi all,

I would like to solicit feedback for this ticket: [#142 belongs\_to association not updated when assigning to foreign key - Ruby on Rails - rails](http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/142-patch-belongs_to-association-not-updated-when-assigning-to-foreign-key). The reasoning is explained in the ticket so I won't repeat that here but I would like to hear any opinions on why this should or should not be applied.

The latest patch (as of today) is available here: [http://rails.lighthouseapp.com/attachments/44268/belongs\_to\_update\_association\_from\_foreign\_key.diff](http://rails.lighthouseapp.com/attachments/44268/belongs_to_update_association_from_foreign_key.diff)

Cheers, Jon
