Forum: Ruby on Rails master and slave issue.

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.
E13ba8e702211be152c640df2d8e141f?d=identicon&s=25 Joe Black (joe-black)
on 2006-02-13 10:35
hi all.
i have a model called "Comment":
#---------------------------------------------------------
class Comment < ActiveRecord::Base

 def read
  ...
  end

  def write
  ...
  end

end
#---------------------------------------------------------
i want "read" connect to slave server and "write" connect to master
server

any ideas?

all regards.
5a47f5f40df9e9696ca077519c904e90?d=identicon&s=25 unknown (Guest)
on 2006-02-13 12:35
(Received via mailing list)
Hello,

On Mon, Feb 13, 2006 at 10:35:29AM +0100, Joe Black wrote:
> i want "read" connect to slave server and "write" connect to master
> server
>
> any ideas?
I have never used multiple database connection, but you can have a look
there: http://wiki.rubyonrails.org/rails/pages/HowtoUseMu...

I hope it helps.

--
Damien MERENNE   <dam@cosinux.org>
http://www.cosinux.org/blogs/dam/

Human cloning is outlawed because if Chuck Norris were cloned,
then it would be possible for a Chuck Norris roundhouse kick to meet
another
Chuck Norris roundhouse kick. Physicists theorize that this contact
would end the universe.
This topic is locked and can not be replied to.