From: Andrew Stone Date: 2005-11-09T02:22:46+09:00 Subject: Re: Can a action view invoke a methode of a controller then display its results ------=_Part_35287_4731880.1131470564037 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You can call a method on the controller by: @controller.method_call so <%=3D render(:action =3D> @controller.actionTwo) %> I think that will work. Not tested though. -andy On 11/8/05, sayoyo@yahoo.com wrote: > > Hi, > > Can an action view (a template) invoke a methode of a controller, then > display the results of the methode at the same template? > > like: > if actionTwo return a simple string "xyz123" > > and the action view looks like this: > > > abcde > <%=3D render(:action =3D> :actionTwo) %> > > > Should the result html be > abcde > xyz123 > > Thanks you very much > > Sayoyo > > > -- Andrew Stone ------=_Part_35287_4731880.1131470564037--