Added customer composite key
This commit is contained in:
@@ -36,6 +36,8 @@ en:
|
||||
customer_updated: "Customer was successfully updated."
|
||||
destroy:
|
||||
customer_destroyed: "Customer was successfully destroyed."
|
||||
customer:
|
||||
already_exists: "This customer already exists in this company"
|
||||
reservations:
|
||||
create:
|
||||
reservation_created: "Reservation was successfully created."
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
Rails.application.routes.draw do
|
||||
root "reservations#index"
|
||||
resources :customers, param: :composite_key do
|
||||
get :search, on: :collection
|
||||
end
|
||||
resources :reservations
|
||||
resources :customers
|
||||
resources :teams
|
||||
resources :companies
|
||||
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
||||
|
||||
Reference in New Issue
Block a user