mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Remove DeviseMailer from README and set a default value for mailer_sender.
This commit is contained in:
parent
6bd88461f6
commit
4c531df108
2 changed files with 3 additions and 4 deletions
|
@ -47,7 +47,7 @@ Run the generator:
|
|||
|
||||
ruby script/generate devise_install
|
||||
|
||||
And you're ready to go.
|
||||
And you're ready to go. The generator will install an initializer which describes Devise's configuration options. Be sure to take a look.
|
||||
|
||||
== Basic Usage
|
||||
|
||||
|
@ -145,9 +145,8 @@ After signing in a user, confirming it's account or updating it's password, devi
|
|||
|
||||
You can also overwrite after_sign_in_path_for and after_sign_out_path_for to customize better your redirect hooks.
|
||||
|
||||
Finally, if you are using confirmable or recoverable, you also need to setup default url options for the mailer. Here's is the configuration for development:
|
||||
Finally, if you are using confirmable or recoverable, you also need to setup default url options for the mailer in each environment. Here's is the configuration for config/environments/development.rb:
|
||||
|
||||
DeviseMailer.sender = "no-reply@yourapp.com"
|
||||
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
||||
|
||||
== Views
|
||||
|
|
|
@ -43,7 +43,7 @@ Devise.setup do |config|
|
|||
# config.timeout_in = 10.minutes
|
||||
|
||||
# Configure the e-mail address which will be shown in DeviseMailer.
|
||||
# config.mailer_sender = "foo.bar@yourapp.com"
|
||||
config.mailer_sender = "please-change-me@config-initializers-devise.com"
|
||||
|
||||
# Load and configure the ORM. Supports :active_record, :data_mapper and :mongo_mapper.
|
||||
# require 'devise/orm/mongo_mapper'
|
||||
|
|
Loading…
Reference in a new issue