Skip to content

andyduong1920/demo_login_using_devise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

## Step 1

  • add gem ‘devise’

  • bundle install

## Step 2

  • rails generate devise:install # Creates config file, etc.

  • rails generate devise user # Create model class, routes, etc.

  • rake db:migrate # Create user table

  • rails generate devise:views users # Creates (minimal) views

## Step 3:

— Config Ensure you have defined default url options in your environments files. Here is an example of default_url_options appropriate for a development environment in

config/environments/development.rb:

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

config.action_mailer.delivery_method = :smtp

config.action_mailer.smtp_settings = {:address => “localhost”, :port => 1025}

## Step 4:

Install MailCatcher

gem install mailcatcher

Once installed start the mailcatcher server with the command: mailcatcher

localhost:1080/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published