Project

General

Profile

ActionController::RoutingError (No route matches "/javascripts/all.js" with {:method=>:get}):

Added by Bjorn Solberg over 15 years ago

$ ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]

$ rails --version
Rails 2.1.0

$ svn info
Path: .
URL: http://redmine.rubyforge.org/svn/trunk
Repository Root: http://redmine.rubyforge.org/svn
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 1770
Node Kind: directory
Schedule: normal
Last Changed Author: jplang
Last Changed Rev: 1770
Last Changed Date: 2008-08-26 09:05:02 -0700 (Tue, 26 Aug 2008)

For pretty much any page I try to load, I get the following in the production.log:

ActionController::RoutingError (No route matches "/javascripts/all.js" with {:method=>:get}):
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/routing/recognition_optimisation.rb:67:in `recognize_path'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/routing/route_set.rb:384:in `recognize'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:148:in `handle_request'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch'
[...]
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/local/redmine/script/server:3

Rendering /usr/local/src/redmine/redmine-svn/public/404.html (404 Not Found)

Am I missing a file somewhere? Ruby was installed from source, rails was installed by "gem install rails", Redmine is installed from SVN.

Thanks,

Bjorn.


Replies (2)

RE: ActionController::RoutingError (No route matches "/javascripts/all.js" with {:method=>:get}): - Added by namita nair almost 15 years ago

I am getting the below error in redmine.I searched on net for this error some say its an error with the .htaccess file while some say wits with routes.rb.
I am not sure whats causing this error.I just have two extra plugins developed by me deployed with redmine0.8.3.(Rails -2.3.2 and Ruby 1.8.7 patch 11)

ActionController::RoutingError (No route matches "/ja <td style=" with {:method=>:get}):
/vendor/rails/actionpack/lib/action_controller/routing/recognition_optimisation.rb:67:in `old_recognize_path'
/vendor/plugins/reverse_proxy_fix/lib/reverse_proxy_fix.rb:96:in `recognize_path'
/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:385:in `recognize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:148:in `handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:76:in `process'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `synchronize'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `process'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:159:in `process_client'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in `each'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in `process_client'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `run'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `initialize'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `new'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `run'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `initialize'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `new'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `run'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:282:in `run'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in `each'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in `run'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:128:in `run'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/command.rb:212:in `run'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:281
/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'
/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'
/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load'
/vendor/rails/railties/lib/commands/servers/mongrel.rb:64
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
/vendor/rails/railties/lib/commands/server.rb:39
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/wamp/bin/ruby/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3

Rendering C:/wamp/apps/redmine-0.8.3/public/404.html (404 Not Found)

My .htaccess file has not been changed just that its as below:

#General Apache options
&lt;IfModule mod_fastcgi.c&gt;
AddHandler fastcgi-script .fcgi
&lt;/IfModule&gt;
&lt;IfModule mod_fcgid.c&gt;
AddHandler fcgid-script .fcgi
&lt;/IfModule&gt;
&lt;IfModule mod_cgi.c&gt;
AddHandler cgi-script .cgi
&lt;/IfModule&gt;
Options +FollowSymLinks +ExecCGI
#If you don't want Rails to look in certain directories,
#use the following rewrite rules so that Apache won't rewrite certain requests #
#Example:
#RewriteCond %{REQUEST_URI} ^/notrails.*
#RewriteRule .* - [L]
#Redirect all requests not available on the filesystem to Rails
#By default the cgi dispatcher is used which is very slow #
#For better performance replace the dispatcher with the fastcgi one #
#Example:
#RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
RewriteEngine On

#If your Rails application is accessed via an Alias directive,
#then you MUST also set the RewriteBase in this htaccess file. #
#Example:
#Alias /myrailsapp /path/to/myrailsapp/public
#RewriteBase /myrailsapp

RewriteRule ^$ index.html [QSA]
RewriteRule ([.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
<IfModule mod_fastcgi.c>
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</IfModule>
<IfModule mod_fcgid.c>
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</IfModule>
<IfModule mod_cgi.c>
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
</IfModule>

#In case Rails experiences terminal errors
#Instead of displaying this message you can supply a file here which will be rendered instead #
#Example:
#ErrorDocument 500 /500.html

ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"

Can any one help me out with this...........

    (1-2/2)