Commit f7895837 by Tô Ngọc Ánh

fix url cv in mail

parent 5d771739
Pipeline #948 canceled with stages
in 0 seconds
...@@ -17,10 +17,6 @@ class CurriculumVitaeUploader < CarrierWave::Uploader::Base ...@@ -17,10 +17,6 @@ class CurriculumVitaeUploader < CarrierWave::Uploader::Base
0.megabytes..5.megabytes 0.megabytes..5.megabytes
end end
def asset_host
"http://localhost:3000"
end
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded:
# def default_url(*args) # def default_url(*args)
# # For Rails 3.1+ asset pipeline compatibility: # # For Rails 3.1+ asset pipeline compatibility:
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<p>Your submitted information:</p> <p>Your submitted information:</p>
<p>Full Name: <%= @applied_job.full_name %></p> <p>Full Name: <%= @applied_job.full_name %></p>
<p>Email: <%= @applied_job.email %></p> <p>Email: <%= @applied_job.email %></p>
<p>CV Link: <%= link_to @applied_job.curriculum_vitae.identifier, @applied_job.curriculum_vitae.url, target: '_blank' %></p> <p>CV Link: <%= link_to @applied_job.curriculum_vitae.identifier, URI.join(root_url, @applied_job.curriculum_vitae.url).to_s, target: '_blank' %></p>
<br> <br>
<p>Thanks and best regards.</p> <p>Thanks and best regards.</p>
</body> </body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment