Rails.application.routes.draw do
  root 'home#index'
  # id and format specified to fix problem with using domain names as slugs
  resources :domains, only: [:index, :show, :create], id: /([^\/])+?/, format: /json|csv|xml|yaml/
  get '/compare/:id1/:id2', to: 'domains#compare', as: 'compare'
end
Rails.application.routes.draw do
  root 'home#index'
  # id and format specified to fix problem with using domain names as slugs
  resources :domains, only: [:index, :show, :create], id: /([^\/])+?/, format: /json|csv|xml|yaml/
  get '/compare/:id1/:id2', format: /json|csv|xml|yaml/, to: 'domains#compare', as: 'compare', id1: /([^\/])+?/, id2: /([^\/])+?/
end
Fix compare ids not working for domain names.
Fix compare ids not working for domain names.
