CSS file not loaded. Recognition failed ?!

Daniel Mircea
Mon, 28 Aug 2006 21:57:05 -0000

Hello,
I''m having a very strange issue. I''m launching the rails app
with
webbrick, but the browser doesn''t `always` load the css file.
I''m using <%= stylesheet_link_tag ''cascada'',
:media => ''all'' %> to link
the file, where cascada.css is the stylesheet of course. Pointing the
browser directly to
''http://localhost:3000/stylesheets/cascada.css'' may
sometimes work, and some times does not and i really can''t figure it
out. Refreshing the page renders the page well again but only in
Konqueror (though i have to do this every time, on every page). Gecko
based browsers don''t render the css after refreshing the page - period.
On further inspection the css they load has this instead (yes, this is a
css file, not html):



Action Controller: Exception caught

    body { background-color: #fff; color: #333; }

    body, p, ol, ul, td {
      font-family: verdana, arial, helvetica, sans-serif;
      font-size:   13px;
      line-height: 18px;
    }

    pre {
      background-color: #eee;
      padding: 10px;
      font-size: 11px;
    }

    a { color: #000; }
    a:visited { color: #666; }
    a:hover { color: #fff; background-color:#000; }




Routing Error
Recognition failed for
"/stylesheets/cascada.css"






The development log shows the following related information:
-----------------------------------------------------
ActionController::RoutingError (Recognition failed for
"/stylesheets/cascada.css"):

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:522:in
`recognition_failed''

/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:512:in
`recognize!''
    /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in
`dispatch''
    /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in
`handle_dispatch''
    /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in
`service''
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service''
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread''
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread''
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start''
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start''
    /usr/lib/ruby/1.8/webrick/server.rb:23:in `start''
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start''
    /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in
`dispatch''
    /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require''

/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require''
    /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require''

/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require''
    ./script/server:3
    -e:4
-----------------------------------------------------

Suggestions.. any ideas ?

Best regards

--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---