From albert.ramstedt on April 30, 2008 01:32:21
What steps will reproduce the problem? 1. Setup rails application with rails 1.1.6 in vendor
2. Use the Pagination class
3. Get error What is the expected output? What do you see instead? I expect it to not throw error. instead i get:
NameError (uninitialized constant Pagination):
/vendor/rails/activesupport/lib/active_support/dependencies.rb:123:in
`const_missing' What version of the product are you using? On what operating system? 1.0.3, Lunix debian sarge Please provide any additional information below. Works with mongrel.
Full trace:
/vendor/rails/activesupport/lib/active_support/dependencies.rb:123:in
const_missing' /app/controllers/public_controller.rb:256:in
paginate_published'
/app/controllers/public_controller.rb:198:in film' /vendor/rails/actionpack/lib/action_controller/base.rb:941:in
send'
/vendor/rails/actionpack/lib/action_controller/base.rb:941:in
perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:368:in
perform_action_without_benchmark'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in
measure'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in
passenger_orig_perform_action'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/request_handler.rb:145:in
perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:408:in
send'
/vendor/rails/actionpack/lib/action_controller/base.rb:408:in
process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in
process_without_session_management_support'
/vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in
process' /vendor/rails/railties/lib/dispatcher.rb:38:in
dispatch'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/request_handler.rb:304:in
`process_request'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/request_handler.rb:180:in
`main_loop'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/application_spawner.rb:320:in
`start_request_handler'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/application_spawner.rb:282:in
`handle_spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/application_spawner.rb:280:in
`fork'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/application_spawner.rb:280:in
`handle_spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/application_spawner.rb:278:in
`fork'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/application_spawner.rb:278:in
`handle_spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:291:in
`send'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:291:in
`main_loop'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:147:in
`start_synchronously'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:114:in
`start'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:108:in
`fork'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:108:in
`start'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/application_spawner.rb:147:in
`start'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/framework_spawner.rb:278:in
`handle_spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/framework_spawner.rb:273:in
`synchronize'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/framework_spawner.rb:273:in
`handle_spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:291:in
`send'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:291:in
`main_loop'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:147:in
`start_synchronously'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:114:in
`start'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:108:in
`fork'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:108:in
`start'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/framework_spawner.rb:104:in
`start'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/spawn_manager.rb:106:in
`spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/spawn_manager.rb:102:in
`synchronize'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/spawn_manager.rb:102:in
`spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/spawn_manager.rb:183:in
`handle_spawn_application'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:291:in
`send'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:291:in
`main_loop'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/lib/passenger/abstract_server.rb:147:in
`start_synchronously'
/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.3/bin/passenger-spawn-server:32
Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=42