rake routes is used to verify the existence of a route:
control1_route1 DELETE /control1/route1(.:format)
However, when attempting to make a "delete" request to this route:
var url = "<%= control1_route1_url %>";
$.ajax({url: url, type: "DELETE"}).
done(function(data) {
alert("ok");
});
The request never reaches its destination and results in a 404 error. What could be causing this issue?
Additionally:
# controller
def route1
end
# routes
delete "control1/route1" => "control1#route1"