gist: 398 Download_button fork
public
Public Clone URL: git://gist.github.com/398.git
date_slugs.rb
1
2
3
4
5
6
7
8
9
10
11
ActionController::Routing::Routes.draw do |map|
 
  map.connect ' daily/:year/:month' ,
    :controller => ' teetimes' ,
    :action => ' index' ,
    :month => Time.now.month,
    :year => Time.now.year,
    :requirements => {
      :year => /\d+/,
      :month => /\d+/
    }

Owner

DocSavage

Fork Of

gist: 390 by bbuchs rails routing - use date as...

Revisions