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:


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

Thanks for info.

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs