On Wednesday 30 November 2005 09:36, gpshewan wrote:
> >     map.connect ?:year/:month/:day/page/:page?, :controller =>
> > ?articles?, :action => ?find_by_date?, :year => /\d{4}/, :month =>
> > / \d{1,2}/, :day => /\d{1,2}/, :page => /\d+/

This is what I did for my wordpress permalinks, too.

I also added a couple of routes for XML feeds, so that people would not 
have to resubscribe:

map.xml 'feed', :controller => 'xml', :action => 'feed', :type => 
'feed', :format => 'rss20'
map.xml 'feed/atom', :controller => 'xml', :action => 'feed', :type => 
'feed', :format => 'atom03'

This may not be the optimal solution, but it works for me. :)
-- 
Aaron Malone
aaron at munge.net

Reply via email to