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