diff --git a/app/controllers/admin/patents_controller.rb b/app/controllers/admin/patents_controller.rb index 12e6109..9670885 100644 --- a/app/controllers/admin/patents_controller.rb +++ b/app/controllers/admin/patents_controller.rb @@ -17,7 +17,7 @@ class Admin::PatentsController < OrbitMemberController @member = MemberProfile.find(patent_params['member_profile_id']) rescue nil @patent = Patent.new(patent_params) @patent.save - redirect_to '/admin/members/'+@member.to_param+'/Patent' + redirect_to URI.encode('/admin/members/'+@member.to_param+'/Patent') end def edit @@ -30,7 +30,7 @@ class Admin::PatentsController < OrbitMemberController @patent = Patent.find(params[:id]) @patent.update_attributes(patent_params) @patent.save - redirect_to '/admin/members/'+@member.to_param+'/Patent' + redirect_to URI.encode('/admin/members/'+@member.to_param+'/Patent') end def destroy @@ -66,7 +66,7 @@ class Admin::PatentsController < OrbitMemberController @intro = @intro.nil? ? PatentIntro.new({:member_profile_id=>@member.id}) : @intro @intro.update_attributes(intro_params) @intro.save - redirect_to '/admin/members/'+@member.to_param+'/Patent' + redirect_to URI.encode('/admin/members/'+@member.to_param+'/Patent') end def get_settings diff --git a/app/views/plugin/personal_patent/_profile.html.erb b/app/views/plugin/personal_patent/_profile.html.erb index be72b63..d6ba3d7 100644 --- a/app/views/plugin/personal_patent/_profile.html.erb +++ b/app/views/plugin/personal_patent/_profile.html.erb @@ -44,7 +44,7 @@ <%= check_box_tag 'to_change[]', patent.id.to_s, false, :class => "list-check" %> <% end %> -