[LRUG] Error in production.log

Chris Lowis chris at chrislowis.co.uk
Thu Aug 30 01:19:12 PDT 2007


Hello LRUG,

I have errors like this in my production.log (apologies for the length paste) :

ActionController::RoutingError (no route found to match
"/javascripts/effects.js" with {:method=>:get}):
    /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.
                          rb:1292:in `recognize_path'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.
                          rb:1282:in `recognize'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:168:in
`process_request'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:143:in
`process_each_request!'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:109:in
`with_signal_handler'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:142:in
`process_each_request!'
    /usr/lib/ruby/1.8/fcgi.rb:600:in `each_cgi'
    /usr/lib/ruby/1.8/fcgi.rb:597:in `each'
    /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:141:in
`process_each_request!'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:55:in `process!'
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:25:in
`process!' dispatch.fcgi:24


Has anybody seen anything like this before ?

My routes file looks like this :

ActionController::Routing::Routes.draw do |map|
  # The priority is based upon order of creation: first created ->
highest priority.

  # Sample of regular route:
  # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action

  # Sample of named route:
  # map.purchase 'products/:id/purchase', :controller => 'catalog',
:action => 'purchase'
  # This route can be invoked with purchase_url(:id => product.id)

  # You can have the root of your site routed by hooking up ''
  # -- just remember to delete public/index.html.
  map.connect '', :controller => "motor"

  # Allow downloading Web Service WSDL as a file with an extension
  # instead of a file named 'wsdl'
  map.connect ':controller/service.wsdl', :action => 'wsdl'

  # Install the default route as the lowest priority.
  map.connect ':controller/:action/:id.:format'
  map.connect ':controller/:action/:id'
end


I'm deploying on dreamhost which uses fastcgi. Have I missed an
obvious change needed to routes.rb to use the javascript helpers ?
Everything works fine in development mode on my mac.

Any thoughts ?

Chris







-- 
Chris Lowis
http://www.chrislowis.co.uk/



More information about the Chat mailing list