porting changes to rails 2: fixing usage for stage_parent for templates_controller