From 9a5e1c66a8f75ed6496af2fdba14e1457bab1bce Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 30 Jul 2008 20:52:00 +0000 Subject: [PATCH] ActionItem296: editing header/footer --- app/controllers/my_profile/profile_editor_controller.rb | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/app/controllers/my_profile/profile_editor_controller.rb b/app/controllers/my_profile/profile_editor_controller.rb index 164cf7f..eaceae4 100644 --- a/app/controllers/my_profile/profile_editor_controller.rb +++ b/app/controllers/my_profile/profile_editor_controller.rb @@ -49,4 +49,14 @@ class ProfileEditorController < MyProfileController render :partial => 'shared/select_categories', :locals => {:object_name => 'profile_data', :multiple => true}, :layout => false end + def header_footer + if request.post? + @profile.update_attributes!(:custom_footer => params[:custom_footer], :custom_header => params[:custom_header]) + redirect_to :action => 'index' + else + @header = boxes_holder.custom_header + @footer = boxes_holder.custom_footer + end + end + end -- libgit2 0.21.2