Guest User

Untitled

a guest
Nov 24th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. $ bundle exec rails c
  2. Loading development environment (Rails 3.1.0.rc1)
  3. ruby-1.9.2-p180 :001 > a = Account.new
  4. => #<Account id: nil, created_at: nil, updated_at: nil>
  5. ruby-1.9.2-p180 :002 > d = a.dossiers.build
  6. => #<Dossier id: nil, account_id: nil, created_at: nil, updated_at: nil>
  7. ruby-1.9.2-p180 :003 > a.save!
  8. SQL (14.7ms) INSERT INTO "accounts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 31 May 2011 15:56:22 UTC +00:00], ["updated_at", Tue, 31 May 2011 15:56:22 UTC +00:00]]
  9. SQL (0.1ms) INSERT INTO "dossiers" ("account_id", "created_at", "updated_at") VALUES (?, ?, ?) [["account_id", 1], ["created_at", Tue, 31 May 2011 15:56:22 UTC +00:00], ["updated_at", Tue, 31 May 2011 15:56:22 UTC +00:00]]
  10. => true
  11. ruby-1.9.2-p180 :004 > d = Dossier.new
  12. ArgumentError: Unknown validator: 'InvalidValidator'
  13. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activemodel-3.1.0.rc1/lib/active_model/validations/validates.rb:97:in `rescue in block in validates'
  14. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activemodel-3.1.0.rc1/lib/active_model/validations/validates.rb:94:in `block in validates'
  15. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activemodel-3.1.0.rc1/lib/active_model/validations/validates.rb:91:in `each'
  16. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activemodel-3.1.0.rc1/lib/active_model/validations/validates.rb:91:in `validates'
  17. from /home/gucki/Coding/lala/app/models/dossier.rb:4:in `<class:Dossier>'
  18. from /home/gucki/Coding/lala/app/models/dossier.rb:1:in `<top (required)>'
  19. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:452:in `load'
  20. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:452:in `block in load_file'
  21. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:639:in `new_constants_in'
  22. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:451:in `load_file'
  23. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:338:in `require_or_load'
  24. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:489:in `load_missing_constant'
  25. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:181:in `block in const_missing'
  26. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:179:in `each'
  27. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:179:in `const_missing'
  28. from (irb):4
  29. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc1/lib/rails/commands/console.rb:44:in `start'
  30. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc1/lib/rails/commands/console.rb:8:in `start'
  31. from /home/gucki/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc1/lib/rails/commands.rb:40:in `<top (required)>'
  32. from script/rails:6:in `require'
  33. from script/rails:6:in `<main>'ruby-1.9.2-p180 :005 >
Add Comment
Please, Sign In to add comment