diff --git a/app/controllers/admin/labs_controller.rb b/app/controllers/admin/labs_controller.rb index 8842dda..f01151f 100644 --- a/app/controllers/admin/labs_controller.rb +++ b/app/controllers/admin/labs_controller.rb @@ -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