fgrehm / letter_opener_web

A web interface for browsing Ruby on Rails sent emails
MIT License
718 stars 112 forks source link

Wrong layout used in rails 5.1.4 #85

Closed PragmaticEd closed 6 years ago

PragmaticEd commented 6 years ago

In Rails 5.1.4 letter_opener uses default (application) layout.

Ruby: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] Rails: 5.1.4

Routes:

if Rails.env.development?
    mount LetterOpenerWeb::Engine, at: '/letter_opener'
  end

environments/development.rb

config.action_mailer.delivery_method = :letter_opener_web

Screenshot: buts - google chrome 2018-04-16 09 20 17

PragmaticEd commented 6 years ago

So, apparently, after multiple restarts, it started working.. So, i guess, this is closed.