cybermalandro cybermalandro wrote:> Hi! I want to create a rails application that reads information from a > Progress SQL database. I don''t think I can connect to the Progress DB > unless I write an adapter. Now, my second option is to use webspeed to > create a script that will spit out XML, then read the XML and do what I > need to do with the data. I am not really sure what is the best way to > do this on Rails, should I use the REXML lib on ruby or is there an > easier way to do this? Please respond, I would even appreciate a RTFM > instead of no answer at all. > > Thanks!RTFM :-) Rails has a native PostgreSQL adapter, so there''s no need to write one. Check the docs for ActiveRecord::Base.establish_connection and ActiveRecord::ConnectionAdapters::PostgreSQLAdapter at http://api.rubyonrails.com. It can use either the C-based ruby interface, or the ruby-based gem. If you do need XML processing for anything else, then REXML is almost certainly the best way to go. HTH -- Alex
cybermalandro cybermalandro wrote:> Alex, > > I meant Progress not Postgress. > http://www.progress.com/index.sspD''oh! Excuse me while I introduce my forehead to that brick wall over there... I did know of the existence of Progress, just completely mis-read your email. I do apologise. -- Alex> > On 9/19/05, *Alex Young* <alex-qV/boFbD8Meu8LGVeLuP/g@public.gmane.org > <mailto:alex-qV/boFbD8Meu8LGVeLuP/g@public.gmane.org>> wrote: > > cybermalandro cybermalandro wrote: > > Hi! I want to create a rails application that reads information > from a > > Progress SQL database. I don''t think I can connect to the Progress DB > > unless I write an adapter. Now, my second option is to use > webspeed to > > create a script that will spit out XML, then read the XML and do > what I > > need to do with the data. I am not really sure what is the best way to > > do this on Rails, should I use the REXML lib on ruby or is there an > > easier way to do this? Please respond, I would even appreciate a RTFM > > instead of no answer at all. > > > > Thanks! > > RTFM :-) > > Rails has a native PostgreSQL adapter, so there''s no need to write one. > Check the docs for ActiveRecord::Base.establish_connection and > ActiveRecord::ConnectionAdapters::PostgreSQLAdapter at > http://api.rubyonrails.com. It can use either the C-based ruby > interface, or the ruby-based gem. > > If you do need XML processing for anything else, then REXML is almost > certainly the best way to go. > > HTH > -- > Alex > >
Hi! I want to create a rails application that reads information from a Progress SQL database. I don''t think I can connect to the Progress DB unless I write an adapter. Now, my second option is to use webspeed to create a script that will spit out XML, then read the XML and do what I need to do with the data. I am not really sure what is the best way to do this on Rails, should I use the REXML lib on ruby or is there an easier way to do this? Please respond, I would even appreciate a RTFM instead of no answer at all. Thanks! _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails