Ruby on Rails Sunday, February 10, 2019

Wow, very nice.  Where you taking your training?  

On Sunday, February 10, 2019 at 2:13:34 AM UTC-5, Daniel Toma wrote:
I'm 5 weeks into a training program that consists of Ruby, Ruby on Rails, Javascript, and React.  I'm about the wrap up the 3-week module for Ruby on Rails, and chose to do a project that simulates a basic airline reservation system.
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.



Screen Shot 2019-02-09 at 4.47.22 PM.png


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c4b3493b-52c1-4948-bbb9-94cf3a84c8a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment