[Rails] Re: cms like routes

2009-09-26 Thread fredd
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

[Rails] Re: cms like routes

2009-09-26 Thread fredd
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