I am having a heck of a time understanding the new rest craze in rails.
what I think I understand so far:
1 rest is about the way we use http to access information on the
2 http was created with nouns and verbs in mind, but the only verbs that
are supported in browsers and server software today are ‘post’ and
‘get’. Other useful verbs include put and delete.
3 a url should only contain nouns. They should identify a resource.
Along with the url should be a ‘method’ which should contain a verb that
describes what we want to do with the resource.
I have done a lot of reading but thats the best I can come up with so
And what I REALLY don’t understand is the new ActiveResource stuff in
rails. We want rails to be more rest oriented. We can’t rely on ‘put’
and ‘delete’ so rails tries to implement restful requests for us. But
all its really doing is tacking the verb onto the url for us. So why
cant the verb just be attached like ‘person/delete’. Why all the
semicolons and ampersands. And what makes this approach any different
than calling it an ‘action’?
Any help would be greatly appreciated.