Fix url encode

This commit is contained in:
manson 2014-07-15 17:17:05 +08:00
parent 7d9fdca69b
commit 27eb2857d0
1 changed files with 3 additions and 3 deletions

View File

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