From ec6173efe3cfab23ca9f0f3e9037a88cd10320ed Mon Sep 17 00:00:00 2001 From: manson Date: Tue, 15 Jul 2014 17:26:23 +0800 Subject: [PATCH] Fix url encode --- app/controllers/admin/honors_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/admin/honors_controller.rb b/app/controllers/admin/honors_controller.rb index 8a1fb65..9af5f76 100644 --- a/app/controllers/admin/honors_controller.rb +++ b/app/controllers/admin/honors_controller.rb @@ -17,7 +17,7 @@ class Admin::HonorsController < OrbitMemberController @member = MemberProfile.find(honor_params['member_profile_id']) rescue nil @honor = Honor.new(honor_params) @honor.save - redirect_to '/admin/members/'+@member.to_param+'/Honor' + redirect_to URI.encode('/admin/members/'+@member.to_param+'/Honor') end def edit @@ -30,7 +30,7 @@ class Admin::HonorsController < OrbitMemberController @honor = Honor.find(params[:id]) @honor.update_attributes(honor_params) @honor.save - redirect_to '/admin/members/'+@member.to_param+'/Honor' + redirect_to URI.encode('/admin/members/'+@member.to_param+'/Honor') end def destroy @@ -66,7 +66,7 @@ class Admin::HonorsController < OrbitMemberController @intro = @intro.nil? ? HonorIntro.new({:member_profile_id=>@member.id}) : @intro @intro.update_attributes(intro_params) @intro.save - redirect_to '/admin/members/'+@member.to_param+'/Honor' + redirect_to URI.encode('/admin/members/'+@member.to_param+'/Honor') end def get_settings