Skip to content

Commit

Permalink
Installing Devise for Users
Browse files Browse the repository at this point in the history
  • Loading branch information
jleblond committed Mar 1, 2021
1 parent 7415d3d commit 7c18913
Show file tree
Hide file tree
Showing 12 changed files with 500 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ gem 'jbuilder', '~> 2.7'

# Use Active Storage variant
# gem 'image_processing', '~> 1.2'
#
gem 'devise'
gem 'annotate'

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.4', require: false
Expand Down
18 changes: 18 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ GEM
zeitwerk (~> 2.3)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
annotate (3.1.1)
activerecord (>= 3.2, < 7.0)
rake (>= 10.4, < 14.0)
bcrypt (3.1.16)
bindex (0.8.1)
bootsnap (1.7.2)
msgpack (~> 1.0)
Expand All @@ -78,6 +82,12 @@ GEM
childprocess (3.0.0)
concurrent-ruby (1.1.8)
crass (1.0.6)
devise (4.7.3)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0)
responders
warden (~> 1.2.3)
erubi (1.10.0)
ffi (1.14.2)
globalid (0.4.2)
Expand All @@ -104,6 +114,7 @@ GEM
nio4r (2.5.5)
nokogiri (1.11.1-x86_64-darwin)
racc (~> 1.4)
orm_adapter (0.5.0)
public_suffix (4.0.6)
puma (5.2.1)
nio4r (~> 2.0)
Expand Down Expand Up @@ -146,6 +157,9 @@ GEM
rb-inotify (0.10.1)
ffi (~> 1.0)
regexp_parser (2.1.1)
responders (3.0.1)
actionpack (>= 5.0)
railties (>= 5.0)
rubyzip (2.3.0)
sass-rails (6.0.0)
sassc-rails (~> 2.1, >= 2.1.1)
Expand Down Expand Up @@ -177,6 +191,8 @@ GEM
turbolinks-source (5.2.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
warden (1.2.9)
rack (>= 2.0.9)
web-console (4.1.0)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
Expand All @@ -202,9 +218,11 @@ PLATFORMS
x86_64-darwin-19

DEPENDENCIES
annotate
bootsnap (>= 1.4.4)
byebug
capybara (>= 3.26)
devise
jbuilder (~> 2.7)
listen (~> 3.3)
puma (~> 5.0)
Expand Down
5 changes: 5 additions & 0 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class HomeController < ActionController::Base
def index

end
end
6 changes: 6 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class User < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :validatable
end
1 change: 1 addition & 0 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HOME - INDEX
Loading

0 comments on commit 7c18913

Please sign in to comment.