This is kind of strange.
I have a route:
match "program/:program_id" => "program#details"
When calling this, everything works:
/program/1
However, the program IDs I use aren’t digits only. They’re in fact URLs like so: crid://blah.com/d1e5
How can I pass an URL via a RESTful approach as a paramter?
Calling this doesn’t work, obviously:
/program/crid://blah.com/d1e5
/program/crid%3A%2F%2Fblah.com%2Fd1e5
Use
program/*program_idinstead ofprogram/:program_id.