Created
June 7, 2011 11:00
-
-
Save tjmcewan/1012032 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ruby-1.8.7-p334 :001 > task = Task.create(:name => "test") | |
=> #<Task id: 4364, name: "test", created_at: "2011-06-07 10:38:24", updated_at: "2011-06-07 10:38:24"> | |
ruby-1.8.7-p334 :003 > task.destroy | |
=> #<Task id: 4364, name: "test", created_at: "2011-06-07 10:38:24", updated_at: "2011-06-07 10:38:47"> | |
ruby-1.8.7-p334 :004 > task | |
=> #<Task id: 4364, name: "test", created_at: "2011-06-07 10:38:24", updated_at: "2011-06-07 10:38:47"> | |
ruby-1.8.7-p334 :005 > task.present? | |
=> true | |
ruby-1.8.7-p334 :007 > task.reload | |
ActiveRecord::RecordNotFound: Couldn't find Task with ID=4364 | |
ruby-1.8.7-p334 :008 > task | |
=> #<Task id: 4364, name: "test", created_at: "2011-06-07 10:38:24", updated_at: "2011-06-07 10:38:47"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment