Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: publify/publify
...
head fork: Dariusp/typo
compare: master
  • 4 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Feb 22, 2009
Darius Pėža Dariusp deleted useless routes
which get errors in sidebar, and in sidebar paginate is useless
b067356
Darius Pėža Dariusp Merge branch 'master' of git://github.com/fdv/typo cc21e22
Commits on Feb 23, 2009
Darius Pėža Dariusp fix routes again, I don't know why it work, but it work... 3833d8a
Commits on Feb 24, 2009
Darius Pėža Dariusp added paginate to article_by_year 500ee63
Showing with 5 additions and 3 deletions.
  1. +5 −3 config/routes.rb
8 config/routes.rb
View
@@ -4,10 +4,12 @@
map.root :controller => 'articles', :action => 'index'
# TODO: use only in archive sidebar. See how made other system
- map.articles_by_month ':year/:month', :controller => 'articles', :action => 'index', :year => /\d{4}/, :month => /\d{1,2}/
- map.articles_by_month ':year/:month/page/:page', :controller => 'articles', :action => 'index', :year => /\d{4}/, :month => /\d{1,2}/
+ map.articles_by_month ':year/:month', :controller => 'articles', :action => 'index',
+ :requirements => { :year => /\d{4}/, :month => /\d{1,2}/ }
+ map.articles_by_month_paginate ':year/:month/page/:page', :controller => 'articles', :action => 'index',
+ :requirements =>{ :year => /\d{4}/, :month => /\d{1,2}/ }
map.articles_by_year ':year', :controller => 'articles', :action => 'index', :year => /\d{4}/
- map.articles_by_year ':year/page/:page', :controller => 'articles', :action => 'index', :year => /\d{4}/
+ map.articles_by_year_paginate ':year/page/:page', :controller => 'articles', :action => 'index', :year => /\d{4}/
map.admin 'admin', :controller => 'admin/dashboard', :action => 'index'

No commit comments for this range

Something went wrong with that request. Please try again.