Hello all, I''d like to use " layout ''template_name'' " in a controller. However, I''d also like to have an action on this controller not be rendered within this layout template rather just render the action''s corresponding view. Can this be done? Thanks
Kendall Gifford
2009-Jun-10 17:31 UTC
Re: question about using layout template in controller
So try: layout ''template_name'', :except => :my_action where :my_action is the action you don''t want rendered in the context of the specified layout. On Jun 10, 10:15 am, grasshopper <revi2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello all, > > I''d like to use " layout ''template_name'' " in a controller. However, > I''d also like to have an action on this controller not be rendered > within this layout template rather just render the action''s > corresponding view. > > Can this be done? > > Thanks