This project is archived and is in readonly mode.
routes with namespace not generating correctly
-
CancelProfileIsBroken
- State changed from new to invalid
accept_admin_api_key_url(api_key.id) should generate http://localhost:3000/admin/api_..., as you say it does. So the route generation here is correct.
The question is what you're doing to get the 404? If you're just clicking on a link, that won't be handled by this route because you specified the PUT verb.
Your second URL gets handled by the magic :controller/:action/:id route, which doesn't care what verb you specify.
If you have some other method that you're trying to go to this URL with a reproducible recognition bug, please submit a new ticket.