diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-04-22 23:13:59 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-04-22 23:13:59 +0300 |
commit | 702380f1aed9d20cc48d24164e4910613ec18703 (patch) | |
tree | 371d2fae333a4d282c5d6514dcc073d24166f64f /config/routes.rb | |
parent | 80893cad672361e62c0c05c2cf9262209bc54fd2 (diff) |
Add letter_opener_web gem
Sent emails in the development environment will no longer automatically
be opened in the browser. If a sent email needs to be viewed, it can be
found at the `/rails/letter_opener` route.
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index 2f820aafed1..d664434e1a6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,16 +16,18 @@ Rails.application.routes.draw do end end - # Make the built-in Rails routes available in development, otherwise they'd - # get swallowed by the `namespace/project` route matcher below. - # - # See https://git.io/va79N if Rails.env.development? + # Make the built-in Rails routes available in development, otherwise they'd + # get swallowed by the `namespace/project` route matcher below. + # + # See https://git.io/va79N get '/rails/mailers' => 'rails/mailers#index' get '/rails/mailers/:path' => 'rails/mailers#preview' get '/rails/info/properties' => 'rails/info#properties' get '/rails/info/routes' => 'rails/info#routes' get '/rails/info' => 'rails/info#index' + + mount LetterOpenerWeb::Engine, at: '/rails/letter_opener' end namespace :ci do |