Answer the question
In order to leave comments, you need to log in
How to port wordpress-like CNC to Rails?
The task was to transfer the WP-blog to rails, but in such a way as to preserve the appearance of links to articles. Are there any standard tools or gems to fine-tune CNC in rails? Now the links look like this - "/2012/07/21/some-article-title".
So far, I haven't come up with anything better than just " match '/:slug' => 'articles#show'
".
Answer the question
In order to leave comments, you need to log in
Maybe something like this:
match "/:date/:title" => "articles#show",
:constraints => { :date => /\d{4}/\d{2}/\d{2 }/ },
:as => "acticle"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question