So You Want to Learn ActiveResource...

Posted by ryan
at 11:10 PM on Wednesday, January 17, 2007

But you can’t find much info on the subject? Stay tuned to this little teaser to learn ActiveResource in a live, real-world scenario.

Comments

Leave a response

  1. Antonio EggbergJanuary 18, 2007 @ 02:11 AM
    Yes I am going no where .. however while I wait I just have a simple question - ActiveResouce can only be used to consume RESTfull services correct? - We can not consume REST services provided by likes of "Yahoo" cos Yahoo is not RESTfull correct? - If I create RESTFull Server/Service does that also mean all my "ARes consumers" need to use AR to consume my service correct? I would appreciate your clarification.
  2. Alex MacCawJanuary 18, 2007 @ 05:31 AM
    I've been doing some Active Resource tutorials, but less on the 'getting started' stuff and more on a intermediate level ( a bit like the rails cookbook ). Check them out at my blog: http://www.eribium.org
  3. Bob HuttonJanuary 18, 2007 @ 05:55 AM
    There is already a great tutorial .. your tutorial must be better then that :=) http://www.soaranch.com/articles/2006/7/11/soa-and-rails-part-1.html
  4. Ryan DaigleJanuary 18, 2007 @ 07:23 AM
    Antonio, ARes is in fact specific to REST and the protocol provided by most Rails services. So, while you could not use ARes out of the box to interface with a non-REST Yahoo service, or a REST service that doesn't conform to the expected protocol - the reverse is not true. You can write a service in any framework or language, and as long as it uses the expected protocol ARes will be able to talk to it. In addition just because you write a RESTful service in Rails does not mean you can only access it with ARes. Most generic REST client frameworks should have the ability to interact with your Rails REST service.
  5. Antonio EggbergJanuary 18, 2007 @ 12:05 PM
    Ryan: Thank you very much! As there are very little docs so I was a bit confused by the words REST and RESTful! I appreciate your help and look forward to your tutorial! All the best!
  6. Josh RickardJanuary 18, 2007 @ 01:17 PM
    Sounds good. I've been messing around a bit with AR and I'm sure it will become very popular as more tutorials and documentation become available. I know there have been a few patches submitted lately for documentation to AR which should help.