Custom Actions with REST

With that route, you need to POST to this URI:
http://localhost:3000/model_a/9/model_b/1;associate

I assume you tried calling
http://localhost:3000/model_a/9/model_b/associate
with the GET method so Rails is looking for the “model_b” with a id of “associate” since GET maps to Controller#show.

ed