newbie: rest-routes + custom action

hi,

tasks is a resource, ‘confirm’ a custom POST action which i need. the url should look like that:

tasks/ID/confirm

what do i need to set in my routes for rails2.3.x? is that possible?

thx

Yes this is possible, try something like this in config/routes.rb

map.connect "/tasks/:id/confirm", :controller => "tasks", :action =>
"confirm"

Hope this helps :slight_smile:

Chris