Hi to all, Any can help me ... How to handle multiple database in ruby on rails. I have to maintain two tables on one database and i have to maintain other 4 tables on another database. Can you any one send me sample to code to do this please..... You can contact me on this mail id also gokulamurthy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Regards, P.Gokula murthy http://railsthinker.blogspot.com --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 19, 5:00 am, "gokul murthy" <railsthin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi to all, > > Any can help me ... > > How to handle multiple database in ruby on rails. > > I have to maintain two tables on one database and i have to maintain other 4 > tables on another database. > > Can you any one send me sample to code to do this please..... > > You can contact me on this mail id also gokulamur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > Regards, > > P.Gokula murthyhttp://railsthinker.blogspot.comstart with these: http://rails.rubyonrails.com/classes/ActiveRecord/Base.html http://wiki.rubyonrails.com/rails/pages/HowtoUseMultipleDatabases http://groups.google.com/group/rubyonrails-talk/browse_frm/thread/9b002dee39ecb9f4? http://blog.amber.org/2005/06/30/lost-in-multiple-rails/ --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Check out a plugin called UseDB which is all about easy access to an arbitrary number of databases within a single application. Even allows for migrations (optional) and unit tests for all databases. http://agilewebdevelopment.com/plugins/usedb -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---