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!
on 2006-03-31 04:39
on 2006-03-31 05:13
>From http://api.rubyonrails.com/classes/ActionControlle... # 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 2006-03-31 06:18
Anthony Moralez wrote: >>From http://api.rubyonrails.com/classes/ActionControlle... > > # 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?
on 2006-03-31 14:35
layout "standard",:except=>"some_action" On Friday, March 31, 2006, at 4:18 AM, cranberry wrote: >> Anthony Moralez >http://lists.rubyonrails.org/mailman/listinfo/rails Mikkel B. www.strongside.dk - Football Portal(DK) ting.minline.dk - Buy Old Stuff!(DK)