Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MIS21_Final_Project
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chanelle Lunod
MIS21_Final_Project
Commits
20ac6df5
Commit
20ac6df5
authored
Jul 16, 2018
by
Chanelle Lunod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parent
30fa2ca2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
7 deletions
+25
-7
users.coffee
app/assets/javascripts/users.coffee
+3
-0
users.scss
app/assets/stylesheets/users.scss
+3
-0
users_controller.rb
app/controllers/users_controller.rb
+4
-0
users_helper.rb
app/helpers/users_helper.rb
+2
-0
index.html.erb
app/views/users/index.html.erb
+2
-0
routes.rb
config/routes.rb
+1
-0
seeds.rb
db/seeds.rb
+1
-7
users_controller_test.rb
test/controllers/users_controller_test.rb
+9
-0
No files found.
app/assets/javascripts/users.coffee
0 → 100644
View file @
20ac6df5
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
app/assets/stylesheets/users.scss
0 → 100644
View file @
20ac6df5
// Place all the styles related to the Users controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
app/controllers/users_controller.rb
0 → 100644
View file @
20ac6df5
class
UsersController
<
ApplicationController
def
index
end
end
app/helpers/users_helper.rb
0 → 100644
View file @
20ac6df5
module
UsersHelper
end
app/views/users/index.html.erb
0 → 100644
View file @
20ac6df5
<h1>
Users#index
</h1>
<p>
Find me in app/views/users/index.html.erb
</p>
config/routes.rb
View file @
20ac6df5
Rails
.
application
.
routes
.
draw
do
get
'users/index'
devise_for
:admin_users
devise_scope
:admin_user
do
authenticated
:admin_user
do
...
...
db/seeds.rb
View file @
20ac6df5
...
...
@@ -5,10 +5,4 @@ if AdminUser.count == 0
password:
'Andrea25'
,
password_confirmation
:'Andrea25'
})
end
if
AdminUser
.
valid?
admin
.
save
()
# email: 'chanelle.lunod@obf.ateneo.edu',
# password: 'December5',
# password_confirmation:'December5'
\ No newline at end of file
end
\ No newline at end of file
test/controllers/users_controller_test.rb
0 → 100644
View file @
20ac6df5
require
'test_helper'
class
UsersControllerTest
<
ActionDispatch
::
IntegrationTest
test
"should get index"
do
get
users_index_url
assert_response
:success
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