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
-
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.
-
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
-
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
-
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.
-
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!
-
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.
