Skip to content

Instantly share code, notes, and snippets.

@jacobat
Created June 2, 2009 10:26
Show Gist options
  • Save jacobat/122180 to your computer and use it in GitHub Desktop.
Save jacobat/122180 to your computer and use it in GitHub Desktop.
% ./script/console
Loading development environment (Rails 2.3.2)
>> Task.all
=> [#<Task id: 1, description: "Task no. 1", created_at: "2009-06-02 10:06:06", updated_at: "2009-06-02 10:06:06">]
>> Task.first.description
=> "Task no. 1"
>> Task.first.update_attribute(:description, "First task")
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment