Hi, I''m new to Ruby on Rails and have a little problem. I currently have a mysql database on a separate server than the one I''m building and running rails apps on. Is it possible to query the remote database and display those results in a rails app, or am I asking for problems? This is really the only thing I''m trying to do with rails at the moment, just to get me started. I know the usual approach is the build and manage the database with the rails app, but I don''t need to do that in this case. Thanks -- 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 -~----------~----~----~----~------~----~------~--~---
Thats no problem at all and is no different that connecting to the local database other than changing the settings in database.yml. If you want to conncet to multiple databases, look here: http://wiki.rubyonrails.org/rails/pages/HowtoUseMultipleDatabases -Bill On Nov 10, 2007, at 7:27 PM, Matt Davis wrote:> > Hi, > > I''m new to Ruby on Rails and have a little problem. I currently have a > mysql database on a separate server than the one I''m building and > running rails apps on. Is it possible to query the remote database > and > display those results in a rails app, or am I asking for problems? > > This is really the only thing I''m trying to do with rails at the > moment, > just to get me started. I know the usual approach is the build and > manage the database with the rails app, but I don''t need to do that in > this case. > > Thanks > -- > 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 -~----------~----~----~----~------~----~------~--~---
William Pratt wrote:> Thats no problem at all and is no different that connecting to the > local database other than changing the settings in database.yml. If > you want to conncet to multiple databases, look here: > > http://wiki.rubyonrails.org/rails/pages/HowtoUseMultipleDatabases > > -BillThanks Bill, I''ll look into that. -- 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 -~----------~----~----~----~------~----~------~--~---