Created
November 9, 2010 23:42
-
-
Save evanrmurphy/670059 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# == 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