[typo] new blog / routes.rb Q
lists at holsman.net
Mon Sep 26 19:38:48 EDT 2005
on this note, is it possible for typo/rails to ignore part of the path?
I'd like rails/typo to be able to ignore the parts between 'f/' and
from what the example you give below it seems like I can.
Mike Purvis wrote:
> Looks nice. A similar look to what I was trying to acheive
> (http://uwmike.com), but I think you did a much better job.
> By the way, if you don't like the /pages/x URLs, it's a reasonably easy
> hack on /typo/config/routes.rb to make them... something else. Around
> like 80, you'll see:
> map.connect 'pages/*name',:controller => 'articles', :action => 'view_page'
> Now, it's an easy thing to make "pages" something else, but you can also
> just add a rule like
> map.connect 'bio',:controller => 'articles', :action => 'view_page',
> That way "/pages/bio" and "/bio" will both be the same resource...
> Anyhow, not a big deal, but it's kind of cool. (The
> http://uwmike.com/about page on my site is like this...)
> jeremy*pinnix wrote:
>> Typo-list mailing list
>> Typo-list at rubyforge.org
> Typo-list mailing list
> Typo-list at rubyforge.org
More information about the Typo-list