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

The Archive Base Latest Questions

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

After I deployed my upgraded Rails 2.3.x -> 3.1 (rc4) app to our test

  • 0

After I deployed my upgraded Rails 2.3.x -> 3.1 (rc4) app to our test environment this afternoon, all of our stylesheets and JavaScript files were returning 404 errors. We had added the rake assets:precompile task to our post-deploy script and it took a while to determine why the assets folder didn’t have the pre-compiled files we expected.

In the end, the files weren’t being compiled because apparently only application.css and application.js (+ non JS/CSS files) are processed by default.

We needed to change the following configuration value as follows:

config.assets.precompile += %w( *.js *.css )

Question: why isn’t this the default?

I would have expected that anything that wasn’t necessary to process as a manifest file would just get copied into public/assets. Much of what I’ve read on the asset pipeline is essentially “stick your assets in app/assets, configure the manifest files, and it should just work”. Since the assets:precompile task didn’t spit out any information about what it was doing, it took a while to determine that it just wasn’t looking at the files we thought it would.

Is there any reason why this would not be a good value for the precompile configuration?

Thanks!

  • 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:59:22+00:00Added an answer on May 23, 2026 at 7:59 am

    The idea is to have all your JavaScript and CSS always loaded in one shot, rather than loading bits and pieces as you move along. That way you always have the ‘world’ loaded and ready to work with, rather than having to include a whole bunch of individual files here and there.

    It’s a bit of a larger ‘up front’ load, but then the browser should keep loading all the javascript from cache. So the perceived speed of the site should speed up due to having everything cached and ready to go after the first request.

    This was a controversial decision to include for Rails, but so is including CoffeeScript by default. Rails has always been an opinionated framework that way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We deployed our legacy ASP.NET application to production after successful test deployments to our
After we deployed the new version of our ASP.NET C# app with a MySQL
Our asp.net app is running on 10 web servers, after we deployed the new
I know that after I have deployed my ipad/iphone app into App Store, it
I have noticed that after my Grails app has been deployed for about 2
I have just deployed my app to heroku, and after some problems, it seem
I am running heroku run rake db:migrate after I have deployed my app to
After I have re-deployed my app to Heroku, it displays the old public/index.html. What
I've upgraded a Grails app from 1.3.6 to 2.1.1. After some fixing and tidying
I'm trying to publish a Rails 3.1 (upgraded from 3.0) application. After submitting the

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.