I guess I should have finished the sentence
The routes for show, new, edit and destroy are singular because
they’re showing and editing a particular thing.
The rest of the routes are plural, They deal with the resource as a
The singular RESTful routes require an argument because they to know
the id of the particular member of the collection on which you’re
My question evolves around the new_thing_url route requiring an “id”
From my rudimentary understanding, the RESTfull actions/routes named
show, update, destroy and edit require an id parameter. new, index and
create do not.
The list in my mind, of singular routes (as defined above) is
different from the one in the book in that mine contains ‘update’ and
the book’s list contains ‘new’ instead.
As far as the names having plurals, I haven’t read that far. Maybe 2.0
changed things as I am reading a 1.2.3 book but the show, update and
destroy actions are described as being available via
things_url(@thing) with method options of ‘put’ and ‘destroy’, with
‘get’ as a default. I have yet to discover the show_thing_path. it’s
still things_url(@thing) for me, but I’m not done reading.
I will get there, Rails intricacies take time for me to understand.
I read most of the teaser chapter, “Ruby under microscope” of your
“Ruby in Practice” book. Looks very good, I guess I am going to have
to put it in my queue behind the 1200-1500 pages of unread books that
I already own and haven’t yet gotten to.
On Apr 22, 10:54 pm, “Jeremy McAnally” [email protected]