Pat Maddox
2006-Jul-12 11:41 UTC
[Rails] So what is REST? I don''t get how it fits in Rails
Does someone have an actual example of this? I saw DHH''s slides where he said that you could have your app automatically respond with HTML, XML, atom, whatever. So far I''ve found tons of discussion on REST and CRUD in Rails, but I haven''t seen anything that actually shows me what it all is. There''s simply_restful, which apparently makes things easier...I don''t know what though. I''ve done a lot of reading, so I know what REST is, I just don''t know how people use it in Rails. If anyone has some examples and explanations, I''d really appreciate it. Pat
Joe Youngquist
2006-Jul-12 12:43 UTC
[Rails] So what is REST? I don''t get how it fits in Rails
Hi Pat, I''m not going to be much help for you, but I did come across a link to Mat Griffith''s site that might be helpful: http://mattgriffith.net/PermaLink.aspx?guid=c8e38fa3-1b07-4d3d-ba1e-f8fb7a2846dc (Do you want to play with the latest REST stuff in Rails?<http://mattgriffith.net/PermaLink.aspx?guid=c8e38fa3-1b07-4d3d-ba1e-f8fb7a2846dc> ) HTH JY On 7/12/06, Pat Maddox <pergesu@gmail.com> wrote:> > Does someone have an actual example of this? I saw DHH''s slides where > he said that you could have your app automatically respond with HTML, > XML, atom, whatever. So far I''ve found tons of discussion on REST and > CRUD in Rails, but I haven''t seen anything that actually shows me what > it all is. There''s simply_restful, which apparently makes things > easier...I don''t know what though. I''ve done a lot of reading, so I > know what REST is, I just don''t know how people use it in Rails. If > anyone has some examples and explanations, I''d really appreciate it. > > Pat > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060712/830825b1/attachment.html
Rimantas Liubertas
2006-Jul-12 12:51 UTC
[Rails] So what is REST? I don''t get how it fits in Rails
> Does someone have an actual example of this? I saw DHH''s slides where > he said that you could have your app automatically respond with HTML, > XML, atom, whatever. So far I''ve found tons of discussion on REST and > CRUD in Rails, but I haven''t seen anything that actually shows me what > it all is.<...> Well, if you saw DHH slides, then you should have seen what it all is about. Maybe DHH''s talk will help? URL is here: http://tinyurl.com/opl7c Regards, Rimantas -- http://rimantas.com/
Ben Munat
2006-Jul-12 15:25 UTC
[Rails] So what is REST? I don''t get how it fits in Rails
Sounds like you''re wondering about REST in general, not just in rails. If so, here''s a few links: http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm (that''s the dissertation that started it all) http://www.xfront.com/REST-Web-Services.html http://www.xml.com/pub/a/2004/08/11/rest.html and there''s lots more out there! b Pat Maddox wrote:> Does someone have an actual example of this? I saw DHH''s slides where > he said that you could have your app automatically respond with HTML, > XML, atom, whatever. So far I''ve found tons of discussion on REST and > CRUD in Rails, but I haven''t seen anything that actually shows me what > it all is. There''s simply_restful, which apparently makes things > easier...I don''t know what though. I''ve done a lot of reading, so I > know what REST is, I just don''t know how people use it in Rails. If > anyone has some examples and explanations, I''d really appreciate it. > > Pat > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Pat Maddox
2006-Jul-22 07:25 UTC
[Rails] So what is REST? I don''t get how it fits in Rails
On 7/12/06, Rimantas Liubertas <rimantas@gmail.com> wrote:> > Does someone have an actual example of this? I saw DHH''s slides where > > he said that you could have your app automatically respond with HTML, > > XML, atom, whatever. So far I''ve found tons of discussion on REST and > > CRUD in Rails, but I haven''t seen anything that actually shows me what > > it all is. > <...> > > Well, if you saw DHH slides, then you should have seen what it all is about. > Maybe DHH''s talk will help? URL is here: http://tinyurl.com/opl7cNot really...I read the slides and watched his talk. Read a bunch of articles as well. I''d really just like to see some actual example code. Maybe someone could take the 15 minute blog and make it restful. I attempted to in order to learn this for myself, but couldn''t figure it out. Pat
Tim Uckun
2006-Jul-22 11:30 UTC
[Rails] So what is REST? I don''t get how it fits in Rails
I have a question about REST security. Let''s say I have a URL like this http://www.mycompany.com/clients/statements/show This URL shows the stament for a particular client. The client logs in, I know who the client is, I show them their statement. Let''s say I want to expose this as a REST service so the client can pull the statement in XML. How should the client identify themselves? Should it be http://username:password@mycompany.com/... Or should be in the form of GET params? Some other way?
Jon Gretar Borgthorsson
2006-Jul-22 11:53 UTC
[Rails] So what is REST? I don''t get how it fits in Rails
REST is a protocol like SOAP or XML-RPC. A good source on REST with a few examples is on http://ajaxpatterns.org/RESTful_Service Doesn''t explain how Rails is going to make it easyer to make REST but shoud explain the protocol. On 7/12/06, Pat Maddox <pergesu@gmail.com> wrote:> Does someone have an actual example of this? I saw DHH''s slides where > he said that you could have your app automatically respond with HTML, > XML, atom, whatever. So far I''ve found tons of discussion on REST and > CRUD in Rails, but I haven''t seen anything that actually shows me what > it all is. There''s simply_restful, which apparently makes things > easier...I don''t know what though. I''ve done a lot of reading, so I > know what REST is, I just don''t know how people use it in Rails. If > anyone has some examples and explanations, I''d really appreciate it. > > Pat > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/