Ruby on Rails Monday, February 29, 2016

I'm trying to figure out how to escape a literal colon in the routes. If I make a route like this:

get '/thing:/:id' => 'things#show'

then '/thing:/123' does not match on this route

I've also tried '/thing\:/:id' and '/thing%3A/:id' none seem to work.

Does anyone have any tips here?

-Justin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/091fa1a1-99e8-431c-b5c6-a17a1dbdca44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment