fixed double slash from mobile.

This commit is contained in:
Harry Bomrah 2014-10-28 18:09:17 +08:00
parent 727d775d7b
commit f73ca8846b
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Admin::RegisterApiController < ApplicationController
end end
def send_confirmation_email(email, confirmation_token, site_token) 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 = 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 email.deliver
end end