Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6048697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:29:33+00:00 2026-05-23T07:29:33+00:00

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

  • 0

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 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:29:33+00:00Added an answer on May 23, 2026 at 7:29 am

    What am I doing wrong here?

    Nothing, you are just using a default 3.1 install which uses the new sprockets-based asset pipeline.

    put your stylesheets into /app/assets/stylesheets and use

    <%= stylesheet_link_tag 'application.css' %> 
    

    in your views

    the new pipeline takes all the stylesheets in that folder and automagically compiles them into a single file.

    ==

    Alternatively, you can set turn the new pipline off in your application.rb with

    config.assets.enabled = false
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a very simple blog application using Ruby on Rails. New to
I am using cucumber and RSpec for my new ruby on rails application and
I am using cucumber to write features for a new ruby on rails application.
I am new to Ruby on Rails, I have completed the Blog Tutorial .
Im new to Ruby On Rails.Im using Ruby version 1.8.7 and Rails version 2.3.8.I
I am new to ruby on rails and I have just started watching rails
I am new to ruby on rails and I have just started watching rails
I am new to Ruby on Rails. I have read many article regarding easy
I'm using Ruby on Rails (Edge, the development version), and Ruby rvm 1.9.2. application.js
I do not have problem as such but I am quite new to Ruby.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.