I have been reading the manual on how to develop a REST application with Rails, from b-simple[1]. However, after finishing, they talk about ActiveResource. What is the place of this ActiveResource? I mean, the manual has taught me to do a REST app, what is the sense of ActiveResource? Where does it fit in mi app after all? Thanks. [1] http://blog.b-simple.de/articles/2007/02/19/restful-rails-tutorial-in-english -- 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 -~----------~----~----~----~------~----~------~--~---
On 29 Oct 2007, at 12:38, Damaris Fuentes wrote:> I have been reading the manual on how to develop a REST application > with Rails, from b-simple[1]. However, after finishing, they talk > about ActiveResource. What is the place of this ActiveResource? I > mean, the manual has taught me to do a REST app, what is the sense > of ActiveResource? Where does it fit in mi app after all?ActiveResource is the other side of a RESTful app. If you build your app to be RESTful, ActiveResource can be used as a client to retrieve resources from your app. It helps you write clients for your applications, or for other peoples'' applications that are RESTfully designed. James. -- James Stewart : Web Developer Work : http://jystewart.net/process/ Play : http://james.anthropiccollective.org --~--~---------~--~----~------------~-------~--~----~ 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 10/29/07, Damaris Fuentes <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I have been reading the manual on how to develop a REST application with > Rails, from b-simple[1]. However, after finishing, they talk about > ActiveResource. What is the place of this ActiveResource? I mean, the > manual has taught me to do a REST app, what is the sense of > ActiveResource? Where does it fit in mi app after all? > > Thanks. > > [1] > http://blog.b-simple.de/articles/2007/02/19/restful-rails-tutorial-in-english > -- > Posted via http://www.ruby-forum.com/. > > > >ActiveResource is a client for REST services. You don''t need to use it in your app, though you might want to write a test app, because some of your customers will probably use it if they consume your API from within a Rails app. If your app doesn''t expose an XML API then ARes doesn''t play a role at all. Pat --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ok. So I can write my app without ActiveResource and then, if a client wants to use it, I can transformed it with any further effort, I think? Thanks a lot. James Stewart wrote:> On 29 Oct 2007, at 12:38, Damaris Fuentes wrote: >> I have been reading the manual on how to develop a REST application >> with Rails, from b-simple[1]. However, after finishing, they talk >> about ActiveResource. What is the place of this ActiveResource? I >> mean, the manual has taught me to do a REST app, what is the sense >> of ActiveResource? Where does it fit in mi app after all? > > ActiveResource is the other side of a RESTful app. > > If you build your app to be RESTful, ActiveResource can be used as a > client to retrieve resources from your app. It helps you write > clients for your applications, or for other peoples'' applications > that are RESTfully designed. > > James. > > > -- > James Stewart : Web Developer > Work : http://jystewart.net/process/ > Play : http://james.anthropiccollective.org-- 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 -~----------~----~----~----~------~----~------~--~---