How to use email preview along with catch of the entire route

If I add the entire route to the routes file, I can no longer access the email preview path, because they are added to the routes, and therefore they are identified after I catch the entire route.

How to solve this so that I can use email preview and catch the whole route?

+7
ruby-on-rails-4
source share
1 answer

Add these routes to your .rb routes before catching the entire route.

get '/rails/mailers' => "rails/mailers#index" get '/rails/mailers/*path' => "rails/mailers#preview" 
+10
source share

All Articles