-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUntitled
More file actions
31 lines (21 loc) · 1.23 KB
/
Copy pathUntitled
File metadata and controls
31 lines (21 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<ActionController::Parameters
{"utf8"=>"✓", "authenticity_token"=>"KebRCdZfXxMlYijXQZlQcPUhPSeCtOLkXOwNp6zQvCJx688AdnNBXZ8OBjsCYappSFeNkR9QyjLU8o2fTal5ew==", "/users/9/pets/8/appointments/new"=>
{"checkin"=>"2018-01-01T01:00", "checkout"=>"2018-02-01T01:00"},
"commit"=>"Make Appointment", "controller"=>"appointments", "action"=>"create", "user_id"=>"9", "pet_id"=>"8"}
permitted: false>
resources :users, only: [:new, :create, :show, :edit, :update, :destroy] do
get "/pets", to: 'users#pets'
get '/pets/:id/edit', to: 'pets#edit', as: "edit_pet"
get '/pets/:pet_id/appointments/new', to: 'appointments#new', as: "new_appointment"
post '/pets/:pet_id/appointments/new', to: 'appointments#create', as: "create_appointment"
get '/appointments', to: 'appointments#show', as: 'appointment'
# resources :appointments
resources :pets, only: [:new, :create, :update, :destroy]
# get '/pets/new', to: 'pets#new'
# get '/pets/:id', to: 'pets#show', as: 'show_pet'
# get '/pets/:id/edit', to: 'pets#edit', as: 'pet'
# post '/pets', to: 'pets#create'
# patch '/pets/:id/edit', to: 'pets#update', as: 'edit_pet'
# delete '/pets/:id', to: 'pets#destroy'
end
resources :sessions, only: [:new, :create, :destroy]