George,
I think you really want to use RESTful resources for this kind of
thing. If you do this:
<cfscript>
drawRoutes()
.resources(name="employees", only="index,update,delete")
.root(controller="main", action="index")
.end();
</cfscript>
Then you will get the following routes:
GET /employees => employees#index
PUT /employees/[key] => employees#update
DELETE /employees/[key] => employees#delete
The HTTP methods and action names involved are a little different than
what you desired, but this is the standard way in ColdRoute to set up
a controller to edit/delete an entity. If you desire all seven of the
RESTful routes (index, new, create, show, edit, update, delete) to be
created for a resource, you can either add additional entries to the
"only" list, or omit that argument entirely.
Hope this helps.
Don
> --
> You received this message because you are subscribed to the Google Groups
> "ColdFusion on Wheels" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
cfwheels+u...@googlegroups.com.
> To post to this group, send email to
cfwh...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/cfwheels?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>