Disable rendering of layout using a GET parameter?

Hi all

Is there some sort of a built-in possiblity to disable the rendering of
the layout using a GET parameter?

Something like

:url_for :controller => :news, :action => :show, :id => news_item,
:layout => false

This should construct something like that:

/news/show/123&layout=false

And automatically the layout wouldn’t be rendered. Is this already
built-in, or should I code it on my own?

Thanks for info.
Joshua

if you don’t want to have the layout applied for a particular action,
just do

layout ‘my_layout’, :except => :show

in your NewsController

and no layout will be applied for the show action.