This should work:
render :template => 'trips/show'

On Sep 7, 4:32 pm, Chris Hoeppner <[email protected]> wrote:
> Yehuda Katz <[email protected]> writes:
> > You should be able to just do render "template_name" inside the view.
>
> > -- Yehuda
>
> > On Mon, Sep 7, 2009 at 8:16 AM, George Adamson 
> > <[email protected]
> >> wrote:
>
> >     Hi there,
>
> >     I have two classes: client and trip.
> >     We have "show.html.erb" that displays ok.
>
> >     How can I include that content (for a specific trip id) inside the
> >     client index page?
>
> >     I could do it using a partial that is used in the Trip view and Client
> >     view but I rather hoped I could just render the Trip view from inside
> >     the Client view.
>
> >     Any ideas?
> >     Many thanks,
> >     George
>
> Would this work with templates in other folders, like
> render "trips/show" ?
>
> --
> Chris Hoeppner
>
> Decir pares, y salir nones, les ocurre a los mamones.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to