From: David Vallner Date: 2006-11-11T23:33:03+09:00 Subject: Re: Ruby on Rails - Multiple Controllers in a page? --------------enigC4EDD33153E924B2BD2B249F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Giles Bowkett wrote: > Don't use components! >=20 > http://glu.ttono.us/articles/2006/08/30/guide-things-you-shouldnt-be-do= ing-in-rails >=20 "For The PHP Trolls" on the end sent me into a giggle fit. Also more on-topic, noone said you can't have code outside a controller. Instead of looking into Rails hackery, just abstract the navigation logic into a separate component that only calls ActiveRecord classes for the model, and renders a partial with them when called? You only really need it to be a controller if it's doing... well... control flow. David Vallner --------------enigC4EDD33153E924B2BD2B249F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFVd9Ey6MhrS8astoRAoKsAJ4+Gnh/hFFZytaUzxCCGHfCFfvyDgCfZimY +a7zwke6zet64z29nrVXDpQ= =YuUk -----END PGP SIGNATURE----- --------------enigC4EDD33153E924B2BD2B249F--