Forum: Ruby on Rails Suppress SELECT after INSERT

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ee469623eb1b8e6e35d192822b9c4aa2?d=identicon&s=25 Florian Aßmann (Guest)
on 2007-07-26 02:00
(Received via mailing list)
Hi,

is there a way to suppress ActiveRecords reload after I saved an record?

Regards
Florian
40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2007-07-26 02:26
(Received via mailing list)
Hi Florian, can you clarify what's happening and what you're trying to
do?

Thanks,

-Conrad
Ee469623eb1b8e6e35d192822b9c4aa2?d=identicon&s=25 Florian Aßmann (Guest)
on 2007-07-26 02:43
(Received via mailing list)
Hi Conrad,

actually it's an select before create that's done when I associate a
record with another one through a has_one :relation.

host.client = Client.factory(a_hash)

queries clients for host_id of host and then inserts the data. I now
understood the problem and solved it.

thanks anyways :)

Regards
Florian
This topic is locked and can not be replied to.