Use resourceful routes

https://github.com/rails/rails/pull/23980
This commit is contained in:
Artur Beljajev 2019-10-12 17:06:35 +03:00
parent f8765eca4d
commit 199085f8ac
15 changed files with 152 additions and 113 deletions

View file

@ -4,6 +4,8 @@ en:
index:
header: Domains
registrant: Registrant
download_pdf_btn: Download PDF
download_csv_btn: Download CSV
reset_btn: Reset
download_list:

View file

@ -2,6 +2,8 @@ en:
registrar:
contacts:
search_form:
download_pdf_btn: Download PDF
download_csv_btn: Download CSV
reset_btn: Reset
partials:

View file

@ -17,7 +17,7 @@ en:
transfer_btn: Transfer
search_form:
download_btn: Download as CSV
download_btn: Download CSV
reset_btn: Reset
domain:

View file

@ -87,7 +87,6 @@ Rails.application.routes.draw do
collection do
get 'check'
get 'download_list'
end
end
@ -151,11 +150,6 @@ Rails.application.routes.draw do
resources :registrars, only: :show
resources :domains, only: %i[index show] do
resources :contacts, only: %i[show edit update]
collection do
get :download_list
end
member do
get 'confirmation'
end