Ruby on Rails looks for css in assets instead of public/stylesheets

Viewed 9145

I am new to Ruby, using ruby 1.9.2P180 and Rails 3.1.0.rc2

I have "screen.css" in my_app_root/public/stylesheets/screen.css and in my application.html.erb

 <%= stylesheet_link_tag 'screen.css', :media => 'screen' %>

according to here it should work but my rails server says:

Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (0.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)

Started GET "/assets/screen.css" for 127.0.0.1 at 2011-06-18 11:27:53 +1200 Served asset /screen.css - 404 Not Found (2ms) (pid 10966)

ActionController::RoutingError (No route matches [GET] "/assets/screen.css"):

What am I doing wrong here?

Thanks in advance

1 Answers
Related