Playing With Time in Ruby and JavaScript

The final project for module 2 at Turing was building an e-commerce app in Rails. My group took it one step further and built a rental site, which of course required tracking reservations, due dates, availability, etc. As our app is a Rails App, most of the date logic is written in Ruby, but when visiting the cart, the total price of the cart updates dynamically based on selected reservation dates, which is done using JavaScript and JQuery — so I had some fun teaching myself about time in JavaScript as well, and note some differences here.

Ranges