spec/internal/config/routes.rb in letter_opener_web-1.0.1 vs spec/internal/config/routes.rb in letter_opener_web-1.0.2
- old
+ new
@@ -1,6 +1,6 @@
Rails.application.routes.draw do
delete 'clear' => 'letter_opener_web/letters#clear'
- get '/' => 'letter_opener_web/letters#index', as: :letters
- get ':id(/:style)' => 'letter_opener_web/letters#show', as: :letter
- get ':id/attachments/:file' => 'letter_opener_web/letters#attachment', format: false
+ get '/' => 'letter_opener_web/letters#index', :as => :letters
+ get ':id(/:style)' => 'letter_opener_web/letters#show', :as => :letter
+ get ':id/attachments/:file' => 'letter_opener_web/letters#attachment'
end