Skip to content

Instantly share code, notes, and snippets.

milgroma / tracking_usage
Created Feb 3, 2014
Are people using our tool?
View tracking_usage
def self.are_you_using_this
## get all of the users
u = User.all
## for each user, do the following thing
u.each do |u|
## get the date of user’s latest session
last_session_date = u.sessions.last ? u.sessions.last.created_at : nil
milgroma / facebook_like_twitter_follow_links
Last active Dec 22, 2015
how you can put a facebook like button and twitter follow button right in your email: copy and paste the following, insert the name of your page/account/handle in place of ours, test by sending it to another account where you can receive email like the person you're sending it to will, edit as you see fit
View facebook_like_twitter_follow_links
You can’t perform that action at this time.