Task 01 :: Devise Lagao

  Devise


.....................................................................................................................................................................

                                                      https://github.com/heartcombo/devise


.......................................................................................................................................................................

gem 'devise'         :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: in gemfile.log

bundle   .......................install    

rails generate devise:install ........................... install

config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }

............in ..config/enviornment /development/.rb

rails generate devise USER .................................... install

rails db:migrate ............................install

before_action :authenticate_user! .................... application_controller.rb

rails g controller home index               ,.............................. in terminal  

root to: 'home#index' ......................... in route.rb



...............................................................................................................................................................................................

................................................................................................................

...............................................................................................................................................................................................


01:         gem 'devise'    -  In gemfile.log

...............................................................................................................................................................................................


02:     $ bundle install   -  run the Command at Terminal

...............................................................................................................................................................................................


03:     $ rails generate devise:install  - run the Command at Terminal

..............................................................................................................................................................................................


04:    config/environments/development.rb

    config.action_mailer.default_url_options = { host'localhost', port3000 }

...............................................................................................................................................................................................


05:   $ rails generate devise USER   ::::  run the Command at Terminal

                        rails db:migrate

..............................................................................................................................................................................................


06: In Rails Controller : application_controller.rb  -  at other places it can give error.

                   before_action :authenticate_user

...............................................................................................................................................................................................

07:  $ rails generate devise:views

...............................................................................................................................................................................................08: 08  $ rails generate devise:views users

Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5