Re: Re: getting all controllers for application

Jarkko Laine
Wed, 11 May 2005 12:49:29 -0000

On 11.5.2005, at 11:05, Dee Zsombor wrote:

> On 5/11/05, Jeremy Kemper
<jeremy-w7CzD/W5Ocjk1uMJSBkQmQ@public.gmane.org> wrote:
>
>> Keeping a constant in environment.rb doesn''t seem bad.
However,
>> greater introspection into controllers and actions would be nice for
>> an easy-admin scaffolding.
>
> Would that not help Routing also?

Absolutely! I think it would be of immense help for example when you
want all normal controller/action requests routed normally and all
others through a catch-all controller for hierarchical pretty url''s of
CMS-like content.

Example:

Controllers:
* news
* blog
* cms

/news/show/245 => traditional routing
/blog/comments/2145 => traditional routing
/clothes/pants/underpants => the whole shebang is passed to cms
controller because clothes doesn''t match with any controller. cms
controller will then parse it and display the correct page.

//jarkko

--
Jarkko Laine
http://jlaine.net
http://odesign.fi


_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org