Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
veNJOB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thanh Hung Pham
veNJOB
Commits
fb632524
Commit
fb632524
authored
Jul 13, 2017
by
Thanh Hung Pham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug
parent
40f617c6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
app/controllers/registrations_controller.rb
+0
-4
app/views/devise/registrations/show.html.erb
+3
-3
No files found.
app/controllers/registrations_controller.rb
View file @
fb632524
...
@@ -24,10 +24,6 @@ class RegistrationsController < Devise::RegistrationsController
...
@@ -24,10 +24,6 @@ class RegistrationsController < Devise::RegistrationsController
end
end
end
end
def
show
render
:show
end
def
download_file
def
download_file
send_file
(
"
#{
Rails
.
root
}
/app/upload/
#{
current_user
.
cv_name
}
"
,
filename:
current_user
.
cv_name
)
send_file
(
"
#{
Rails
.
root
}
/app/upload/
#{
current_user
.
cv_name
}
"
,
filename:
current_user
.
cv_name
)
end
end
...
...
app/views/devise/registrations/show.html.erb
View file @
fb632524
...
@@ -4,15 +4,15 @@
...
@@ -4,15 +4,15 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Email
</label><br
/>
<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>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Full name
</label><br
/>
<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>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Cv name
</label><br
/>
<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>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment