Nimble Industries

Tagrails

Stop using Time.now and Date.today

S

When reviewing Rails apps, I often find many uses of Time.now and Date.today, each of which comes from Ruby itself. Although these methods seem convenient and accessible, they should be avoided inside of Rails apps, as they aren’t converted to the local time zone set inside Rails. Imagine the following (admittedly naive) method inside an Order model: def shipped? shipping_date < Date...

Dump Google Analytics and use Ahoy to track your Rails app traffic

D

StatusGator is built on Ruby on Rails, a popular choice for rapid web application development for more than a decade. One of the many benefits of Rails is its rich ecosystem of open source gems which can provide massive value quickly. We discovered one such gem, Ahoy, on our recent quest to understand how our users find out about StatusGator. StatusGator gets about 3,000 visitors and 20 sign ups...

Nimble Industries