诗歌rails之Custom Routes

# in routes.rb
map.connect 'articles/:year/:month/:day', :controller => 'articles',
:month => nil, :day => nil, :requirements => { :year => /\d{4}/ }
posted @ 2009-12-28 18:18  麦飞  阅读(157)  评论(0编辑  收藏  举报