-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.byebug_history
49 lines (49 loc) · 1.52 KB
/
.byebug_history
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
exit
sorted.pop(3)
new_array.sort { |a, b| b[:count] <=> a[:count] }
new_array.sort { |a, b| a[:count] <=> b[:count] }
new_array.sort { |a, b| puts a }
new_array.sort { |a, b| a.count <=> b.count }
new_array.sort_by { |element| element.count }
sorted
new_array
sorted
exit
sorted
sortedd
Doctor.order(:appointment)
User.create(username: "Benji", password: "1234")
User.create(username: "Benji")
q
Appointment.first
exit
Appointment.first
!![]
!!Appointment.where('doctor_id = ?', 23).map { |apps| apps.animal_id}
Appointment.where('doctor_id = ?', 23).map { |apps| apps.animal_id} || [0]
Appointment.where('doctor_id = ?', 23).map { |apps| apps.animal_id}
params
Appointment.where('doctor_id = ?', 1).map { |a| a.animal_id}
Appointment.where('doctor_id = ?', 1).each { |a| puts a.animal_id}
Appointment.where('doctor_id = ?', 1).each { |a| pp a.animal_id}
Appointment.where('doctor_id = ?', 1).animal_id
Appointment.where('doctor_id = ?', 1)
Appointment.all.where('doctor_id = ?', 1)
Appointment.all.where('doctor_id = ?', 1).animals
Appointment.all.where('doctor_id = ?', 1)
Appointment.all.where('doctor_id = ?', 1).animal_id
Appointment.all.where('doctor_id = ?', 1).length
Appointment.all.where('doctor_id = ?', 1)
User.find(1).user_info_id
Appointment.all.where('id = ?', User.find(1).user_info_id)
Appointment.all.where('id = ?', User.find(1).user_info_id).animal_id
Appointment.all.where('id = ?', user.user_info_id).animal_id
find_appointment.doctor.user.id
find_appointment.doctor.user
find_appointment.doctor
exit
xit
e.errors
e.erros
e
e.record