LoginSignup
0
0

More than 5 years have passed since last update.

rails5でdeviseインストール時のconfig.action_mailer.default_url_optionsのエラー

Last updated at Posted at 2017-08-29

rails g device:installをすると以下の文が現れる。
1. 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/environments/development.rb:に以下の文を書くと、rails sが出来なくなる。

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0