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
|
@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
|
||||||
|
|
Loading…
Reference in New Issue