I think I solved it my self actually!
It turns out that if you name the id parameter something else (like
article_id) Rails actually divides the params correctly.
So this route:
map.article_by_id '*sections/:article_id', :controller =>
"articles", :action => "show", :article_id => /\d|\d-(.+)/
w
I think I solved it my self actually!
It turns out that if you name the id parameter something else (like
article_id) Rails actually divides the params correctly.
So this route:
map.article_by_id '*sections/:article_id', :controller =>
"articles", :action => "show", :article_id => /\d|\d-(.+)/
wou
2 matches
Mail list logo