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