Hi, i''ve two applications (APP1 and APP2) and i want that APP2 is able to get data from APP1. I think that a simple rest web service is the way to go. Do you have some good examples/tutorials? I''ve googled but i find only old examples with the deprecated action web service. From the client, who get the xml, how does reconvert it into ruby/model objects? -- 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 -~----------~----~----~----~------~----~------~--~---
Freddy Andersen
2009-Jan-28 19:21 UTC
Re: Best practices for develop a web service (server+client)?
What about activeResource ? On Jan 28, 11:02 am, Xdmx Xdmx <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi, i''ve two applications (APP1 and APP2) and i want that APP2 is able > to get data from APP1. I think that a simple rest web service is the way > to go. Do you have some good examples/tutorials? I''ve googled but i find > only old examples with the deprecated action web service. From the > client, who get the xml, how does reconvert it into ruby/model objects? > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nate Leavitt
2009-Jan-28 20:08 UTC
Re: Best practices for develop a web service (server+client)?
Xdmx Xdmx wrote:> Hi, i''ve two applications (APP1 and APP2) and i want that APP2 is able > to get data from APP1. I think that a simple rest web service is the way > to go. Do you have some good examples/tutorials? I''ve googled but i find > only old examples with the deprecated action web service. From the > client, who get the xml, how does reconvert it into ruby/model objects?If the apps aren''t rails specific, I would suggest to write a simple rack application. It''s actually pretty useful when interfacing API''s that are non-rails. -- 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 -~----------~----~----~----~------~----~------~--~---
Xdmx Xdmx
2009-Jan-28 22:30 UTC
Re: Best practices for develop a web service (server+client)?
Freddy Andersen wrote:> What about activeResource ?You mean activeresource for the rest approach ? for that sure, but you''d always have the client who request a given url and get some xml to parse... right? Which is the better format to give the client between xml and json ? And how to parse back from xml/json to a an object to include in the db? Just a simple loop over all the data and a Model.create(......) for each? Nate Leavitt wrote:> If the apps aren''t rails specific, I would suggest to write a simple > rack application. It''s actually pretty useful when interfacing API''s > that are non-rails.both are rails apps -- 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 -~----------~----~----~----~------~----~------~--~---
Jay Mcgratgh
2009-Jan-29 05:11 UTC
Re: Best practices for develop a web service (server+client)
remotely related ... Can Rails on Ruby work with an established sqlite3 (or mySQL) database? the tutorials I have read so far build the sqlite3 tables with the $ "ruby script/generate model ... " command. I guess what I am trying to figure out is if the Ruby Rails platform will be a wise investment of my time to learn and eventually become proficient if my goal is to build some web applications that interact to already established databases. I would prefer to build my database the old fashioned way - e.g., SQL CREATE statements - and be able to modify the structure on the fly (structure and data). The web pages would be a simple GUI interface for my computer challenged friends! :) I am hopeful that the Rails on Ruby will allow that flexibility? Eventually, I suspect that I will be good enough to do it all in Rails like you all do. Advice? thanks in advance -- 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 -~----------~----~----~----~------~----~------~--~---
Julian Leviston
2009-Jan-29 11:05 UTC
Re: Best practices for develop a web service (server+client)
Yeah rails is fine to do this stuff in. We use migrations because thy make structure maintenance easier especially if your app is deployed in multiple locations (or even just across a deployment an a development machine) Sent from my iPhone On 29/01/2009, at 4:11 PM, Jay Mcgratgh <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org > wrote:> > remotely related ... > > Can Rails on Ruby work with an established sqlite3 (or mySQL) > database? > the tutorials I have read so far build the sqlite3 tables with the $ > "ruby script/generate model ... " command. > > I guess what I am trying to figure out is if the Ruby Rails platform > will be a wise investment of my time to learn and eventually become > proficient if my goal is to build some web applications that > interact to > already established databases. > > I would prefer to build my database the old fashioned way - e.g., SQL > CREATE statements - and be able to modify the structure on the fly > (structure and data). The web pages would be a simple GUI interface > for > my computer challenged friends! :) > I am hopeful that the Rails on Ruby will allow that flexibility? > Eventually, I suspect that I will be good enough to do it all in Rails > like you all do. > > Advice? > > thanks in advance > > -- > 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 -~----------~----~----~----~------~----~------~--~---