On Sun, Mar 7, 2010 at 7:35 AM, DanC <[email protected]> wrote:

> I have two apps which are independent but I now would like to help
> them talk to each other. Specifically I would like to allow users
> registering to one site to be able to have an account created at the
> other automatically.
>
> Both sites use Restful_authentication plugin so the User table is the
> same structure, so all I would need to pass is name, email and
> password in some sort of information push.

You can open a connection to the other DB and save the User there;
see the ActiveRecord::Base API doc.

That's probably easier and better than messing with replication. But
you'll also want to consider other actions besides new (e.g. when the
user updates their account data -- new email, change password, etc.)

FWIW,
-- 
Hassan Schroeder ------------------------ [email protected]
twitter: @hassan

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to