Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: publify/publify
base: master
...
head fork: Dariusp/typo
compare: master
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Feb 22, 2009
@Dariusp Dariusp deleted useless routes
which get errors in sidebar, and in sidebar paginate is useless
b067356
@Dariusp Dariusp Merge branch 'master' of git://github.com/fdv/typo cc21e22
Commits on Feb 23, 2009
@Dariusp Dariusp fix routes again, I don't know why it work, but it work... 3833d8a
Commits on Feb 24, 2009
@Dariusp Dariusp added paginate to article_by_year 500ee63
Showing with 5 additions and 3 deletions.
  1. +5 −3 config/routes.rb
View
8 config/routes.rb
@@ -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.