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