Skip to content

Instantly share code, notes, and snippets.

@abstrctn
Created May 18, 2011 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abstrctn/979388 to your computer and use it in GitHub Desktop.
Save abstrctn/979388 to your computer and use it in GitHub Desktop.
# I can create records and save current records…
elec_sum = ElectronicSummary.first
elec_sum.save
elec_sum = ElectronicSummary.new
elec_sum.candidate_id = 1
elec_sum.save
# but I can't modify existing records
elec_sum = ElectronicSummary.first
elec_sum.total_receipts = 0.0
elec_sum.save
elec_sum = ElectronicSummary.first
elec_sum.candidate_id = 1
elec_sum.save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment