Guest User

Untitled

a guest
May 4th, 2018
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. C:\workspace\socialm>ruby script/console
  2. Loading development environment (Rails 2.1.0)
  3. >> user = User.find(3)
  4. => #<User id: 3, screen_name: "auzigog", email: "auzigog@gmail.com", password: "Offspring", created_
  5. at: "2008-08-04 12:19:22", updated_at: "2008-08-05 12:08:21", authorization_token: "4de7c304ebcbc996
  6. 5cebdd75b430c916c8cfeb63">
  7. >> game = user.adventure_player.game
  8. => #<AdventureGame id: 1, created_at: "2008-08-25 13:13:04", updated_at: "2008-08-25 13:16:32", roun
  9. d: 1, phase: nil>
  10. >> game.round = 1
  11. => 1
  12. >> game.save!
  13. => true
  14. >> game.round
  15. => nil
  16. >> game.phase = 1
  17. => 1
  18. >> game.save!
  19. => true
  20. >> game.phase
  21. => nil
Add Comment
Please, Sign In to add comment