From f73ca8846b5212e852ac7e7f0006abc9a54ba1ae Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 28 Oct 2014 18:09:17 +0800 Subject: [PATCH] fixed double slash from mobile. --- app/controllers/admin/register_api_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/register_api_controller.rb b/app/controllers/admin/register_api_controller.rb index b473f1f..e665621 100644 --- a/app/controllers/admin/register_api_controller.rb +++ b/app/controllers/admin/register_api_controller.rb @@ -27,7 +27,7 @@ class Admin::RegisterApiController < ApplicationController end def send_confirmation_email(email, confirmation_token, site_token) - url = "#{request.protocol}#{request.host_with_port}//register/confirm_email?confirmation=#{confirmation_token}&site=#{site_token}" + url = "#{request.protocol}#{request.host_with_port}/register/confirm_email?confirmation=#{confirmation_token}&site=#{site_token}" email = Email.new(:mail_to => email, :mail_subject => "Confirmation email for orbit store.", :template => "email/site_confirmation_email.html.erb", :template_data => {"url" => url}) email.deliver end