Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

db result

By: a guest on Feb 13th, 2011  |  syntax: Ruby  |  size: 0.49 KB  |  views: 54  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ruby-1.9.2-p0 > a = Assignment.new
  2.  => #<Assignment id: nil, created_at: nil, updated_at: nil>
  3. ruby-1.9.2-p0 > a.create_video_draft
  4.  => #<Video id: 1, videoable_id: nil, videoable_type: "Assignment", created_at: "2011-02-13 23:00:49", updated_at: "2011-02-13 23:00:49">
  5. ruby-1.9.2-p0 > a.create_video_final
  6.  => #<Video id: 2, videoable_id: nil, videoable_type: "Assignment", created_at: "2011-02-13 23:00:56", updated_at: "2011-02-13 23:00:56">
  7. ruby-1.9.2-p0 > a.save
  8.  => true
  9. ruby-1.9.2-p0 >
clone this paste RAW Paste Data