Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\workspace\socialm>ruby script/console
- Loading development environment (Rails 2.1.0)
- >> user = User.find(3)
- => #<User id: 3, screen_name: "auzigog", email: "auzigog@gmail.com", password: "Offspring", created_
- at: "2008-08-04 12:19:22", updated_at: "2008-08-05 12:08:21", authorization_token: "4de7c304ebcbc996
- 5cebdd75b430c916c8cfeb63">
- >> game = user.adventure_player.game
- => #<AdventureGame id: 1, created_at: "2008-08-25 13:13:04", updated_at: "2008-08-25 13:16:32", roun
- d: 1, phase: nil>
- >> game.round = 1
- => 1
- >> game.save!
- => true
- >> game.round
- => nil
- >> game.phase = 1
- => 1
- >> game.save!
- => true
- >> game.phase
- => nil
Add Comment
Please, Sign In to add comment