Rails.application.routes.draw do
  resources :email_preview, :controller => 'email_preview', :only => [:index, :show] do
    collection do
      get :navigation
    end
    member do
      post :deliver
      get :details
      get :preview
    end
  end
end

Rails.application.routes.prepend do
  resources :email_preview, :controller => 'email_preview', :only => [:index, :show] do
    collection do
      get :navigation
    end
    member do
      post :deliver
      get :details
      get :preview
    end
  end
end

Make /email_preview url work if there is catch all route in application
Make /email_preview url work if there is catch all route in application
