Morgan Morgan
2009-Feb-20 17:23 UTC
Not using view layout application.rhtml on certian things
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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Maurício Linhares
2009-Feb-20 17:28 UTC
Re: Not using view layout application.rhtml on certian things
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 <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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? > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Morgan Morgan
2009-Feb-20 18:43 UTC
Re: Not using view layout application.rhtml on certian things
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 MorganThank you.. worked like a charm. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Chris Kottom
2009-Feb-21 06:54 UTC
Re: Not using view layout application.rhtml on certian things
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 < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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. > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---