Greetings, I am a new pylons user coming from the grails world. I'm
attempting to get my toes wet by trying to build a simple RESTful web
service. (using pylons 1.0)
My most recent problem is trying to get routing working, I'm hoping to
be able to do the following:
map.connect('/books', controller='books', action='index',
conditions=dict(method=['GET']))
map.connect('/books/{id}', controller='books', action='show',
conditions=dict(method=['GET']))
It works great for the index action... however, I was hoping to be
able to pass parameters (id) without specifying an action (using books/
1 instead of books/show/1), but localhost:5050/books/1 treats 1 as
though it is an action.
Any advice for what would be the correct way to do this?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.