Reputation: 2450
I can't seem to get this right. I want to match a short url to a specific nested route.
I want to do this:
match "/register" => "/businesses/3/customers/new"
How can I do this?
Thanks.
Upvotes: 1
Views: 367
Reputation: 84140
Use a redirect.
match "/register" => redirect("/businesses/3/customers/new")