Skip to content

Instantly share code, notes, and snippets.

@cpetersen
Created January 11, 2010 19:47
Show Gist options
  • Select an option

  • Save cpetersen/274535 to your computer and use it in GitHub Desktop.

Select an option

Save cpetersen/274535 to your computer and use it in GitHub Desktop.
class Person < ActiveRecord:Base
attr_accessor :name
def to_s
name
end
end
@names = Person.new(:name => "Colin")
@names = Person.all
@names = "Colin"
@names = ["Colin", "Chris"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment