Forum: Ruby on Rails MySQL problems and undefined class User

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dcbf676f860477e44b275cae5d6318a4?d=identicon&s=25 Piotr Usewicz (lopmx)
on 2006-03-28 16:06
(Received via mailing list)
Hello

	I'm having some issues with MySQL losing it's connection, or undefined
class User on Windows XP. I use Login and UserEngine. Rails 1.0/1.1,
MySQL 4.

MySQL problem (one of them):

Mysql::Error: Lost connection to MySQL server during query: UPDATE
sessions SET `data` =
'BAh7CiINcHJldl91cmkiCi90ZWFtOg1sYW5ndWFnZSIKcGwtUEwiDnJldHVy\nbi10bzA6CXVzZXJvOglVc2VyCjocQG5ld19yZWNvcmRfYmVmb3JlX3NhdmUw\nOhBAYXR0cmlidXRlc3sZIglzYWx0Ii1mZWY2Y2U1NDk0ODc4Yjg0NGNhNDFj\nNGI0Y2Q4MWYwYjg3MWQyOTBmIhFkZWxldGVfYWZ0ZXIwIg91cGRhdGVkX2F0\ndToJVGltZQ2OixqAAAAAAyITc2VjdXJpdHlfdG9rZW4iLTljMjYxMDg4YTBk\nNGNlODE3MjIyNTAzYmY0OTljMzEwNmM3ODdhN2UiCXJvbGUwIg1sYXN0bmFt\nZSIOR3JhYm93c2tpIg5maXJzdG5hbWUiC1JhZmHFgiIHaWQiBjEiEGRlc2Ny\naXB0aW9uIgAiCnBob25lIg42MDMxMTA2NTQiDGRlbGV0ZWQiBjAiEXRva2Vu\nX2V4cGlyeSIYMjAwNi0wMi0wNSAxOTo1NTowOSINdmVyaWZpZWQiBjEiDXBv\nc2l0aW9uIhdJVCBTZXJpdmNlIE1hbmFnZXIiDnBhcmVudF9pZDAiEWxvZ2dl\nZF9pbl9hdHU7Cg2OixqAAAAAAyIUc2FsdGVkX3Bhc3N3b3JkIi1iN2Y3MTU5\nOWVkNTBhZTM3YzQ3MTM2ZjFjMzVhMmU2MmQ0MmFjMDVmIgpsb2dpbiIPcmdy\nYWJvd3NraSIPY3JlYXRlZF9hdCIYMjAwNi0wMS0yOCAyMjo0MDoxMSIKZW1h\naWwiGnJncmFib3dza2lAZXhvcmlnby5wbDoSQG5ld19wYXNzd29yZEY6C0By\nb2xlc286P0FjdGl2ZVJlY29yZDo6QXNzb2NpYXRpb25zOjpIYXNBbmRCZWxv\nbmdzVG9NYW55QXNzb2NpYXRpb24LOhBAcmVmbGVjdGlvbm86NEFjdGl2ZV
Jl\nY29yZDo6UmVmbGVjdGlvbjo6QXNzb2NpYXRpb25SZWZsZWN0aW9uDjoNQG9w\ndGlvbnN7BjoPam9pbl90YWJsZSIQdXNlcnNfcm9sZXM6FkBwcmltYXJ5X2tl\neV9uYW1lIgx1c2VyX2lkOhhAdGhyb3VnaF9yZWZsZWN0aW9uRjoLQG1hY3Jv\nOhxoYXNfYW5kX2JlbG9uZ3NfdG9fbWFueTodQGFzc29jaWF0aW9uX2ZvcmVp\nZ25fa2V5Igxyb2xlX2lkOhBAY2xhc3NfbmFtZSIJUm9sZToLQGtsYXNzYwlS\nb2xlOgpAbmFtZToKcm9sZXM6E0BhY3RpdmVfcmVjb3JkYwlVc2VyOgxAdGFy\nZ2V0WwdvOglSb2xlBjsJewwiCW5hbWUiCkFkbWluIg9vbW5pcG90ZW50IgYx\nIgxyb2xlX2lkIgYyIgdpZCIGMiIQZGVzY3JpcHRpb24iOFRoZSBzeXN0ZW0g\nYWRtaW5pc3RyYXRvciwgd2l0aCBSRUFMIFVMVElNQVRFIFBPV0VSLiIMdXNl\ncl9pZCIGMSIQc3lzdGVtX3JvbGUiBjFvOx0GOwl7DEA9IglVc2VyQD8iBjBA\nQSIGM0BDIgYzQEUiLVRoZSBkZWZhdWx0IHJvbGUgZm9yIGFsbCBsb2dnZWQt\naW4gdXNlcnNARyIGMUBJIgYxOgtAb3duZXJACjoOQGpvaW5fc3FsIj1JTk5F\nUiBKT0lOIHVzZXJzX3JvbGVzIE9OIHJvbGVzLmlkID0gdXNlcnNfcm9sZXMu\ncm9sZV9pZDoMQGxvYWRlZFQ6EEBmaW5kZXJfc3FsIh11c2Vyc19yb2xlcy51\nc2VyX2lkID0gMSA6DEBlcnJvcnNvOhlBY3RpdmVSZWNvcmQ6OkVycm9ycwc6\nCkBiYXNlQAo7InsAIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpG
bGFz\naDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA\n',
`session_id` = '5c2069031b5a093352540af5026f5367', `updated_at` =
'2006-03-28 16:01:21' WHERE id = 963

Undefined class problem:

  ArgumentError in <controller not set>#<action not set>

undefined class/module User

RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace

C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in
`dump'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in
`marshal'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:133:in
`marshal_data!'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:333:in
`callback'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:330:in
`callback'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:248:in
`create_or_update'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1388:in
`save_without_validation'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/validations.rb:724:in
`save_without_transactions'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:126:in
`save'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in
`transaction'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:91:in
`transaction'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:118:in
`transaction'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:126:in
`save'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:307:in
`update'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:794:in
`silence'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:307:in
`update'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:314:in
`close'
C:/ruby/lib/ruby/1.8/cgi/session.rb:166:in `callback'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:121:in
`segment_name'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:103:in
`next_segment'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:160:in
`finish'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:137:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:132:in
`continue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:99:in
`move_forward'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:92:in
`if_next_matches'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:79:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:136:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:132:in
`continue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:161:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:177:in
`assign_result'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:99:in
`move_forward'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:177:in
`assign_result'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:161:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:155:in
`recognition_check'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:155:in
`recognition_check'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:160:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:136:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:132:in
`continue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:99:in
`move_forward'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:92:in
`if_next_matches'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:79:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:136:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:346:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:498:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:602:in
`each'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:496:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:495:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:597:in
`draw'
#{RAILS_ROOT}/config/routes.rb:1
-e:3

C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in
`dump'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in
`marshal'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:133:in
`marshal_data!'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:333:in
`callback'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:330:in
`callback'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:248:in
`create_or_update'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1388:in
`save_without_validation'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/validations.rb:724:in
`save_without_transactions'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:126:in
`save'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in
`transaction'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:91:in
`transaction'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:118:in
`transaction'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:126:in
`save'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:307:in
`update'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:794:in
`silence'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:307:in
`update'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:314:in
`close'
C:/ruby/lib/ruby/1.8/cgi/session.rb:166:in `callback'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:121:in
`segment_name'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:103:in
`next_segment'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:160:in
`finish'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:137:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:132:in
`continue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:99:in
`move_forward'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:92:in
`if_next_matches'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:79:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:136:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:132:in
`continue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:161:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:177:in
`assign_result'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:99:in
`move_forward'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:177:in
`assign_result'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:161:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:155:in
`recognition_check'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:155:in
`recognition_check'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:160:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:136:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:132:in
`continue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:99:in
`move_forward'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:92:in
`if_next_matches'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:79:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:136:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:346:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:498:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:602:in
`each'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:496:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:495:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:597:in
`draw'
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:129:in
`load'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:574:in
`reload'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/dispatcher.rb:67:in
`prepare_application'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/dispatcher.rb:37:in
`dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/webrick_server.rb:115:in
`handle_dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/webrick_server.rb:81:in
`service'
C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/webrick_server.rb:67:in
`dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/commands/servers/webrick.rb:59
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:136:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/commands/server.rb:30
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:136:in
`require'
./script/server:3

C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in
`dump'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in
`marshal'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:133:in
`marshal_data!'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:333:in
`callback'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:330:in
`callback'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:248:in
`create_or_update'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1388:in
`save_without_validation'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/validations.rb:724:in
`save_without_transactions'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:126:in
`save'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in
`transaction'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:91:in
`transaction'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:118:in
`transaction'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:126:in
`save'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:307:in
`update'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:794:in
`silence'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:307:in
`update'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:314:in
`close'
C:/ruby/lib/ruby/1.8/cgi/session.rb:166:in `callback'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:121:in
`segment_name'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:103:in
`next_segment'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:160:in
`finish'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:137:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:132:in
`continue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:99:in
`move_forward'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:92:in
`if_next_matches'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:79:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:136:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:132:in
`continue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:161:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:177:in
`assign_result'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:99:in
`move_forward'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:177:in
`assign_result'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:161:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:155:in
`recognition_check'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:155:in
`recognition_check'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:160:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:136:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:132:in
`continue'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:99:in
`move_forward'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:80:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:92:in
`if_next_matches'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:79:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:136:in
`go'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:346:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:498:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:602:in
`each'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:496:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:19:in
`indent'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/code_generation.rb:46:in
`method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:495:in
`write_recognition'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:597:in
`draw'
#{RAILS_ROOT}/config/routes.rb:1
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:129:in
`load'
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:574:in
`reload'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/dispatcher.rb:67:in
`prepare_application'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/dispatcher.rb:37:in
`dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/webrick_server.rb:115:in
`handle_dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/webrick_server.rb:81:in
`service'
C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/webrick_server.rb:67:in
`dispatch'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/commands/servers/webrick.rb:59
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:136:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/commands/server.rb:30
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:136:in
`require'
./script/server:3
-e:3

This error occured while loading the following files:
    ./script/../config/../config/routes.rb

Request

Parameters: None

Show session dump

---
prev_uri: /team
return-to:
:language: pl-PL
:user: &id001 !ruby/object:User
   attributes:
     salt: fef6ce5494878b844ca41c4b4cd81f0b871d290f
     updated_at: 2006-03-28 16:00:48 +02:00
     delete_after:
     role:
     security_token: 9c261088a0d4ce817222503bf499c3106c787a7e
     id: "1"
     firstname: "Rafa\xC5\x82"
     lastname: Grabowski
     description: ""
     token_expiry: 2006-02-05 19:55:09
     deleted: "0"
     phone: "603110654"
     verified: "1"
     login: rgrabowski
     salted_password: b7f71599ed50ae37c47136f1c35a2e62d42ac05f
     logged_in_at: 2006-03-28 16:00:48 +02:00
     parent_id:
     position: IT Serivce Manager
     email: rgrabowski@exorigo.pl
     created_at: 2006-01-28 22:40:11
   errors: !ruby/object:ActiveRecord::Errors
     base: *id001
     errors: {}

   new_password: false
   new_record_before_save:
   roles:
   - !ruby/object:Role
     attributes:
       name: Admin
       role_id: "2"
       omnipotent: "1"
       id: "2"
       description: The system administrator, with REAL ULTIMATE POWER.
       user_id: "1"
       system_role: "1"
   - !ruby/object:Role
     attributes:
       name: User
       role_id: "3"
       omnipotent: "0"
       id: "3"
       description: The default role for all logged-in users
       user_id: "1"
       system_role: "1"
flash: !map:ActionController::Flash::FlashHash {}


Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}



May I ask for help? It is a bit annoying. After refreshing same page few
times the problem disappears. I use Webrick in development mode.
This topic is locked and can not be replied to.