The requirements are minimal: have at least 3 classes (one being a join class) and use the CRUD methods with a Postgresql db. The processes of creating a reservation, reading an existing reservation, updating a reservation, and deleting a reservation are straightforward, but I’d like to jazz it up a bit for the presentation.
I have the code that eliminates a seat from the list of available seats once that seat is reserved, but I was wondering if there’s a way to incorporate a standard graphic that shows which seats are available (usually a green color) and which are taken (usually gray with an ‘X’). I’m thinking that the graphic would be an HTML form with embedded Ruby, and that each “seat” could be represented. The graphic would represent my Index.html.erb view, that would show the seat number and its status (occupied vs. available). I just can’t think of how this would be done, and I was wondering if anyone had an idea.