Skip to content

Instantly share code, notes, and snippets.

View nixme's full-sized avatar

Gopal Patel nixme

  • Qualified.com
  • San Francisco
  • X @nixme
View GitHub Profile
class User < ActiveRecord::Base
attr_accessible :fb_id, :name, :profile_img_url, :spotify_id
has_many :votes
has_many :songs, through: :votes
end
class Vote < ActiveRecord::Base
belongs_to :user
belongs_to :song
#!/usr/bin/env ruby
puts ARGV[rand(ARGV.size)]