Commit fb632524 by Thanh Hung Pham

Fix bug

parent 40f617c6
......@@ -24,10 +24,6 @@ class RegistrationsController < Devise::RegistrationsController
end
end
def show
render :show
end
def download_file
send_file("#{Rails.root}/app/upload/#{current_user.cv_name}", filename: current_user.cv_name)
end
......
......@@ -4,15 +4,15 @@
<div class="form-group">
<label>Email</label><br />
<input type="text" value="<%= current_user.email %>", class="form-control", readonly/>
<input type="text" value="<%= current_user.email unless current_user.nil? %>", class="form-control", readonly/>
</div>
<div class="form-group">
<label>Full name</label><br />
<input type="text" value="<%= current_user.fullname %>", class="form-control", readonly/>
<input type="text" value="<%= current_user.fullname unless current_user.nil? %>", class="form-control", readonly/>
</div>
<div class="form-group">
<label>Cv name</label><br />
<%= link_to current_user.cv_name, registrations_download_file_path %>
<%= link_to current_user.nil? ? '' : current_user.cv_name, registrations_download_file_path %>
</div>
<div class="form-group">
......
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