Intermittent problem with link_to_remote()


#1

Hi folks,

My page displays links for ‘categories’ using the link_to_remote()
function. Clicking on one of these links goes to the controller and
returns any child categories. I’m finding that the page works ok but
after a number of clicks (average 5 or so), it crashes with an error:

==============================================
Processing Base#index (for 127.0.0.1 at 2006-01-04 15:26:28) [POST]
Parameters: {“current_stage”=>“stage_1”, “category_id”=>“1”}

ArgumentError (undefined class/module Listing):
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:84:in
load' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:84:inunmarshal’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:122:in
data' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:129:inmarshal_data!’
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/callbacks.rb:333:in
send' F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/callbacks.rb:333:incallback’
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/callbacks.rb:330:in
each' F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/callbacks.rb:330:incallback’
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/callbacks.rb:248:in
create_or_update' F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1226:insave_without_validation’
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/validations.rb:698:in
save_without_transactions' F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/transactions.rb:126:insave’
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/transactions.rb:126:in
transaction' F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/transactions.rb:91:intransaction’
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/transactions.rb:118:in
transaction' F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/transactions.rb:126:insave’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:300:in
update' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:300:insilence’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:300:in
update' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:307:inclose’
F:/ruby/lib/ruby/1.8/cgi/session.rb:166:in callback' F:/ruby/lib/ruby/1.8/cgi/session.rb:165:incall’
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:833:in
initialize' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/code_generation.rb:65:innew’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/code_generation.rb:65:in
dup' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/code_generation.rb:96:inmove_forward’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:201:in
recognition_check' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:193:inmethod_missing’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/code_generation.rb:46:in
indent' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/code_generation.rb:46:inmethod_missing’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:193:in
recognition_check' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:159:inwrite_recognition’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/code_generation.rb:136:in
go' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:326:inwrite_recognition’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:479:in
write_recognition' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:477:ineach’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:583:in
each' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:477:inwrite_recognition’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:476:in
method_missing' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/code_generation.rb:46:inindent’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/code_generation.rb:46:in
method_missing' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:476:inwrite_recognition’
F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:578:in
draw' /config/routes.rb:1 F:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:207:inload’
F:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:207:in
load' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:555:inreload’
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:69:in
prepare_application' F:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:37:indispatch’
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:141:in
process_request' F:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:53:inprocess!’
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in
each_cgi' F:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:ineach’
F:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in each_cgi' F:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:inprocess!’
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:22:in
`process!’
F:/web/whooshi/public/dispatch.fcgi:24

Can anyone shed light on this? I’m running Apache2+fastcgi under
Windows
XP with Rails 1.0.

Thanks,

Joe