If I add a catch all route in my routes file I cannot anymore access the email preview paths because they are appended to the routes and there fore defined after my catch all route.
How to solve this so that I can use email preview and have catch all route?
Add these routes in your routes.rb before the catch all route.
get '/rails/mailers' => "rails/mailers#index"
get '/rails/mailers/*path' => "rails/mailers#preview"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With