David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said over 7 years ago on Charts and Graphs :

You might be able to do something like this for a daily count

current_user.impressions.group_by_day(:created_at).count

David Kimura PRO said over 7 years ago on Charts and Graphs :

The methods are within the GroupDate gem https://github.com/ankane/groupdate

The gem's documentation does say that it is compatible with postgres, but I am not sure if there is any additional setup on postgres like there is with MySQL.


David Kimura PRO said over 7 years ago on Plotting Points on a Map from Scratch :

Any JS errors?


David Kimura PRO said over 7 years ago on Client Side Validations :

Their later versions should support Turbolinks and Rails 5. However, they did deprecate the Uniqueness validation as it could be seen as a security risk. You shouldn't have to specify the branch anymore.


David Kimura PRO said over 7 years ago on Client Side Validations :

Great! Glad to hear!