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 8506827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:41:55+00:00 2026-06-11T02:41:55+00:00

I have a rails application and try to deploy it to my local apache

  • 0

I have a rails application and try to deploy it to my local apache server now right.

I tried to precompile the css,javascript file though the command rake assets:precompile and no errors came out.

However, I cannot not access the website though localhost properly and I checked the log file of production.

Error :

ActionView::Template::Error (scaffolds.css isn’t precompiled):
3:
4: Pragprog Books Online Store
5:
6: <%= stylesheet_link_tag “scaffolds” %>
7: <%= stylesheet_link_tag “depot”, :media => “all” %> –>
8: <%= stylesheet_link_tag “pagination” %>
9: app/views/layouts/application.html.erb:6:in
`_app_views_layouts_application_html_erb__1763484413904368549_70243433398420′

It seems that the scaffolds.css cannot be precompiled with the command.

I have changed the config to config.assets.compile = true and my website works. 🙂
But I want to know why the command cannot precompile that css.

  • 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-06-11T02:41:57+00:00Added an answer on June 11, 2026 at 2:41 am

    Check out these lines in your production.rb (or whatever environment you are using), which are probably still commented out:

    # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
    # config.assets.precompile += %w( search.js )
    

    Simply use this option to specify additional assets to precompile, for example:

    config.assets.precompile += %w( *.js *.scss *.coffee *.css )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have rails application running in linode server .Some guy is continuously spamming (writing
I have a Rails application that accepts file uploads of CSV files. When developing
I have a Rails application that lists information about local services. My objectives for
I have a Rails application that works with mongodb. I want to deploy it
I have just inherited a medium sized Rails application and I want to try
I have a rails application which is running well in local (OsX, WEBrick). I've
I have been using mysql in a new rails application, but now I wanted
I have an engine, with this routes file: Rails.application.routes.draw do resources :comments, :controller =>
I have a rails application in which I implemented some feature. Now I want
I have this deploy.rb file: set :application, UDA set :domain, 10.0.0.59 set :deploy_to, /home/gitek/www/uda/

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.