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.
Florian Aßmann (Guest)
on 2007-07-26 04:00
(Received via mailing list)
Hi,

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

Regards
Florian
Conrad T. (Guest)
on 2007-07-26 04:26
(Received via mailing list)
Hi Florian, can you clarify what's happening and what you're trying to
do?

Thanks,

-Conrad
Florian Aßmann (Guest)
on 2007-07-26 04: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.