config/routes.rb in devmail-0.0.1 vs config/routes.rb in devmail-0.1.0

- old
+ new

@@ -1,6 +1,11 @@ -Rails.application.routes.draw do - resources :development_mails, :controller => 'devmail/development_mails', :only => [:index, :show, :destroy] do - get 'clear', :on => :collection - get 'html_part', :on => :member +Devmail::Engine.routes.draw do + resources :messages do + get :send_test, on: :collection + get :html_part, on: :member end + root to: 'messages#index' +end + +Rails.application.routes.draw do + mount Devmail::Engine => "/devmail" end