This web site illustrates how to use action constraints to select the right action based on the request.