Closed mikesten closed 13 years ago
Interesting—any clue as to why splats won't work in Padrino?
By the way you're missing a ^
and $
in those regexes.
And to answer your question about Padrino and splats... I don't rightly know. Padrino implements named splats - you can specify the route /posts/dates/show and then access params[:dates]. Nice and consistent with the /posts/:slug/show style. I took a brief look around padrino-core but haven't absolutely verified that it's this that's interfering. But changing from / to r{.*} style fixes the problem. Um. Yeah. It's a working hypothesis. ;)
Thanks! I hope you don't mind I'm squashing your 3 commits into 1 (git rebase -i HEAD~3
).
Nope, I don't mind at all. :)
Use regular expression route matcher instead of splat pattern for Padrino compatibility.