I need to use a method (called by one of my controllers) without using the layout. All the other methods in the controller need to use this layout except for thismethod (becausae it''s called by an Ajax script). I know how to use :layout=>layout_name when calling a method from another method, but nothing is calling this. The layout needs to be removed in the method itself or I need to call another (''blank'') method instead. Please help! thank you! -- Posted via http://www.ruby-forum.com/.
>From http://api.rubyonrails.com/classes/ActionController/Base.html#M000205# Renders the template for the action "short_goal" within the current controller, # but without the current active layout render :action => "short_goal", :layout => false hope that helps. Anthony Moralez http://anthonysseblog.blogspot.com On 3/30/06, cranberry <miriamraphael@yahoo.com> wrote:> I need to use a method (called by one of my controllers) without using > the layout. All the other methods in the controller need to use this > layout except for thismethod (becausae it''s called by an Ajax script). I > know how to use :layout=>layout_name when calling a method from another > method, but nothing is calling this. > The layout needs to be removed in the method itself or I need to call > another (''blank'') method instead. > > Please help! > > thank you! > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Anthony Moralez wrote:>>From http://api.rubyonrails.com/classes/ActionController/Base.html#M000205 > > # Renders the template for the action "short_goal" within the > current controller, > # but without the current active layout > render :action => "short_goal", :layout => false > > hope that helps. > Anthony Moralez > http://anthonysseblog.blogspot.comThank, but this will *not* work because nothing is rendering this method. Any other suggestions? -- Posted via http://www.ruby-forum.com/.
layout "standard",:except=>"some_action" On Friday, March 31, 2006, at 4:18 AM, cranberry wrote:>Anthony Moralez wrote: >>>From http://api.rubyonrails.com/classes/ActionController/ >>>Base.html#M000205 >> >> # Renders the template for the action "short_goal" within the >> current controller, >> # but without the current active layout >> render :action => "short_goal", :layout => false >> >> hope that helps. >> Anthony Moralez >> http://anthonysseblog.blogspot.com > >Thank, but this will *not* work because nothing is rendering this >method. Any other suggestions? > >-- >Posted via http://www.ruby-forum.com/. >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/railsMikkel Bruun www.strongside.dk - Football Portal(DK) ting.minline.dk - Buy Old Stuff!(DK) -- Posted with http://DevLists.com. Sign up and save your time!