Fix url encode

This commit is contained in:
manson 2014-07-15 17:26:23 +08:00
parent 3e2e4911f7
commit ec6173efe3
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class Admin::HonorsController < OrbitMemberController
@member = MemberProfile.find(honor_params['member_profile_id']) rescue nil @member = MemberProfile.find(honor_params['member_profile_id']) rescue nil
@honor = Honor.new(honor_params) @honor = Honor.new(honor_params)
@honor.save @honor.save
redirect_to '/admin/members/'+@member.to_param+'/Honor' redirect_to URI.encode('/admin/members/'+@member.to_param+'/Honor')
end end
def edit def edit
@ -30,7 +30,7 @@ class Admin::HonorsController < OrbitMemberController
@honor = Honor.find(params[:id]) @honor = Honor.find(params[:id])
@honor.update_attributes(honor_params) @honor.update_attributes(honor_params)
@honor.save @honor.save
redirect_to '/admin/members/'+@member.to_param+'/Honor' redirect_to URI.encode('/admin/members/'+@member.to_param+'/Honor')
end end
def destroy def destroy
@ -66,7 +66,7 @@ class Admin::HonorsController < OrbitMemberController
@intro = @intro.nil? ? HonorIntro.new({:member_profile_id=>@member.id}) : @intro @intro = @intro.nil? ? HonorIntro.new({:member_profile_id=>@member.id}) : @intro
@intro.update_attributes(intro_params) @intro.update_attributes(intro_params)
@intro.save @intro.save
redirect_to '/admin/members/'+@member.to_param+'/Honor' redirect_to URI.encode('/admin/members/'+@member.to_param+'/Honor')
end end
def get_settings def get_settings