[typo] Converting from Wordpress - a few q's

Aaron Malone aaron at munge.net
Wed Nov 30 11:58:10 EST 2005


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



More information about the Typo-list mailing list