I solved it.
*sigh*
It was my .htaccess file.
I set the
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
line before
RewriteEngine On
Placing
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
after
RewriteEngine On
fixes the issue.
On 12/8/05, Brian Takita
<brian.takita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hello,
>
> I deployed a Rails App using Switchtower and now I''m getting a
Routing
> Error to my Javascript and Stylesheet files.
>
> Has anybody else had this issue?
>
> Here is the log file.
>
> > ActionController::RoutingError (Recognition failed for
> > "/javascripts/prototype.js"):
> > /vendor/rails/actionpack/lib/action_controller/routing.rb:470:in
> > `recognition_failed''
> > /vendor/rails/actionpack/lib/action_controller/routing.rb:460:in
> > `recognize!''
> > /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch''
> > /vendor/rails/railties/lib/fcgi_handler.rb:141:in
`process_request''
> > /vendor/rails/railties/lib/fcgi_handler.rb:53:in
`process!''
> > /vendor/rails/railties/lib/fcgi_handler.rb:52:in
`each_cgi''
> > /usr/lib/ruby/1.8/fcgi.rb:597:in `each''
> > /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi''
> > /vendor/rails/railties/lib/fcgi_handler.rb:52:in
`process!''
> > /vendor/rails/railties/lib/fcgi_handler.rb:22:in
`process!''
> > /usr/local/web/ned/current/public/dispatch.fcgi:24
> >
> >
> >
> >
> > Processing Base#index (for 192.168.1.51 at 2005-12-08 10:18:28) [GET]
> > Parameters: {}
> >
> >
> > ActionController::RoutingError (Recognition failed for
> > "/javascripts/effects.js"):
> > /vendor/rails/actionpack/lib/action_controller/routing.rb:470:in
> > `recognition_failed''
> > /vendor/rails/actionpack/lib/action_controller/routing.rb:460:in
> > `recognize!''
> > /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch''
> > /vendor/rails/railties/lib/fcgi_handler.rb:141:in
`process_request''
> > /vendor/rails/railties/lib/fcgi_handler.rb:53:in
`process!''
> > /vendor/rails/railties/lib/fcgi_handler.rb:52:in
`each_cgi''
> > /usr/lib/ruby/1.8/fcgi.rb:597:in `each''
> > /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi''
> > /vendor/rails/railties/lib/fcgi_handler.rb:52:in
`process!''
> > /vendor/rails/railties/lib/fcgi_handler.rb:22:in
`process!''
> > /usr/local/web/ned/current/public/dispatch.fcgi:24
> >
>
> Here is my routes.rb file:
>
> > ActionController::Routing::Routes.draw do |map|
> > # Add your own custom routes here.
> > # The priority is based upon order of creation: first created ->
> > highest priority.
> >
> > # Here''s a sample route:
> > # map.connect ''products/:id'', :controller =>
''catalog'', :action =>
> > ''view''
> > # Keep in mind you can assign values other than :controller and
> > :action
> >
> > # You can have the root of your site routed by hooking up
''''
> > # -- just remember to delete public/index.html.
> > # map.connect '''', :controller =>
"welcome"
> >
> > # 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''
> > map.connect '''', :controller =>
''home'', :action => ''show'', :title =>
> > ''Welcome''
> > end
> >
>
> --
> Thank you,
> Brian Takita
> http://freeopinion.org
--
Brian Takita
http://freeopinion.org
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails