This pulls in:
/www/main/rails_work/demo/config/environment.rb /usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rbUltimately it calls Dispatcher.dispatch
request, response = ActionController::CgiRequest.new(cgi, session_options), ActionController::CgiResponse.new(cgi) prepare_application ActionController::Routing::Routes.recognize!(request).process(request, response).out(output)We can actually track this one step further to the recognize(request) method in:
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rbHere any attempt to use or print the variable request gives us our 500 error -- apparently it is undefined.
How should it ever have been defined?
This certainly isn't obvious in any way from anything I have yet seen along the way.
Somehow, ruby is catching (and hiding!!) exceptions in some clever and very unfortunate
way .....
Also this requires the file: /www/main/rails_work/demo/config/boot.rb Which will end up running:
/usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initializer.rbHowever, we really want to look at:
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/cgi_process.rb
Ruby on Rails notes / [email protected]