Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sample_app
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
0
Merge Requests
0
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
Mai Hoang Thai Ha
sample_app
Commits
5b3a2d4a
Commit
5b3a2d4a
authored
Jun 09, 2021
by
Mai Hoang Thai Ha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish user signup
parent
33ef9d59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
app/controllers/users_controller.rb
+0
-27
No files found.
app/controllers/users_controller.rb
View file @
5b3a2d4a
class
UsersController
<
ApplicationController
def
show
@user
=
User
.
find
(
params
[
:id
])
end
def
new
@user
=
User
.
new
end
def
create
@user
=
User
.
new
(
user_params
)
if
@user
.
save
flash
[
:success
]
=
"Welcome to the Sample App!"
redirect_to
@user
else
render
'new'
end
end
private
def
user_params
params
.
require
(
:user
).
permit
(
:name
,
:email
,
:password
,
:password_confirmation
)
end
end
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