Skip to content

Instantly share code, notes, and snippets.

@evanrmurphy
Created November 9, 2010 23:42
Show Gist options
  • Save evanrmurphy/670059 to your computer and use it in GitHub Desktop.
Save evanrmurphy/670059 to your computer and use it in GitHub Desktop.
# == Schema Information
# Schema version: 20101109221104
#
# Table name: users
#
# id :integer not null, primary key
# first_name :string(255)
# last_name :string(255)
# email :string(255)
# poker_site :string(255)
# created_at :datetime
# updated_at :datetime
#
class User < ActiveRecord::Base
attr_accessor :first_name, :last_name, :email, :poker_site
# When uncommented, this method causes an error at "rails console --sandbox":
# ruby-1.9.2-p0 > User.new
# (Object doesn't support #inspect)
# =>
# def initialize(attributes = {})
# @first_name = attributes[:first_name]
# @last_name = attributes[:last_name]
# @email = attributes[:email]
# @poker_site = attributes[:poker_site]
# end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment