No route matches "/stylesheets/application.css"
with {:method=>:get}
What am I doing wrong?
Thanks,
Dinohanks,
Dino
Do you really have a ‘stylesheets’ directory under your web server’s
document root? Normally for Rails apps this is #{RAILS_ROOT}/public/
stylesheets, but if your web server isn’t looking at RAILS_ROOT/public
then it’s going to give the Rails routing a shot.
Do you really have a ‘stylesheets’ directory under your web server’s
document root? Normally for Rails apps this is #{RAILS_ROOT}/public/
Thanks for the reply. Yes, I have a public/stylesheets directory off
my app root, not my ruby root. i.e. ruby/myapp/public/stylesheets/
application.css
Dino
Are you certain that your web listener (Apache? Mongrel? other?) is
looking at public/ as the document root? If you put an index.html
file there, is it shown for GET / to the server?
I saw in your original message that you had a public/stylesheets
directory, but what I’m asking is whether the rest of the system
(external to Rails) has a consistent view of the app structure.
I saw in your original message that you had a public/stylesheets
directory, but what I’m asking is whether the rest of the system
(external to Rails) has a consistent view of the app structure.
-Rob
I’m just in dev mode using webrick locally. The public dir has the
ruby standard index.html and it does indeed show up if i go to
localhost:3000/
Dino
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.