Forum: Ruby on Rails Not using view layout application.rhtml on certian things

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7728d3daa0e59374b1869ef024eb6ee9?d=identicon&s=25 Morgan Morgan (morgan)
on 2009-02-20 18:23
so i have a view that pops up in a window and the application.rhtml
includes all the navigation stuff sooo the navigation stuff shows up in
the window.. is there a way to have certian views ignore the
view/layouts/application.rhtml?
A91bd6cef23eb3516245a092e196c4da?d=identicon&s=25 Maurício Linhares (mauricio)
on 2009-02-20 18:29
(Received via mailing list)
render :action => 'some_action', :layout => false

-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)



On Fri, Feb 20, 2009 at 2:23 PM, Morgan Morgan
7728d3daa0e59374b1869ef024eb6ee9?d=identicon&s=25 Morgan Morgan (morgan)
on 2009-02-20 19:43
Maurício Linhares wrote:
> render :action => 'some_action', :layout => false
>
> -
> Maur�cio Linhares
> http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
> (en)
>
>
>
> On Fri, Feb 20, 2009 at 2:23 PM, Morgan Morgan

Thank you..  worked like a charm.
51655eeeedad656fad30717c46852437?d=identicon&s=25 Chris Kottom (Guest)
on 2009-02-21 07:56
(Received via mailing list)
You could also use something like the following:

class AController < ActionController::Base
  layout "my_layout", :except => [ :action1, :action2 ]

  ...
end

Mauricio's method might be preferred when you're using the default
layout
and you've just got a couple of actions that don't require the layout.

On Fri, Feb 20, 2009 at 7:43 PM, Morgan Morgan <
This topic is locked and can not be replied to.