Topic: Car rental application question
im making a simple car rental application using ruby on rails
i have three tables with one to one relationships (a user can only make one reservation and only one car can be reserved at a time)
Cars - holds the car details
Reservations - holds the reservation details
Users - holds the user details
on my car details page, i want to to be able to change the car's availablity option by a checkbox, so if the checkbox is checked, the car is up for reservation but if it is unchecked, the car cannot be reserved..
is this done through a method?
sorry very new at this