robbyrussell (owner)

Revisions

gist: 76613 Download_button fork
public
Public Clone URL: git://gist.github.com/76613.git
Embed All Files: show embed
path.rb #
1
2
3
4
5
6
7
8
9
10
# aiming to have something like:
# link_to(article.title, article_path(article))
# and build out /articles/2009/03/10/foo-bar-baz
#
 
  map.article 'articles/:year/:month/:day/:permalink', :controller => 'articles', :action => 'show',
                  :year => /\d{4}/, :day => /\d{1,2}/, :month => /\d{1,2}/