Active Record (p2)

You can do this:

class Entry < ActiveRecord::Base
  # nothing here!
end
 
entry = Entry.new
entry.name = "John"
entry.comments = "What a great Web site!"
entry.save
 
entry = Entry.find(1)
puts entry.name # output: "John"