Fix url encode
This commit is contained in:
parent
3e2e4911f7
commit
ec6173efe3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue