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

The Archive Base Latest Questions

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

Question: How do you get the asset pipeline to process all your .js files?

  • 0

Question:

How do you get the asset pipeline to process all your .js files? (I want them served individually, not bundled into application.js)

I’m getting a ton of 404’s for the javascript files that my pages are trying to reference:

GET http://<myStagingServer>.heroku.com/assets/<javascriptFilename1_MD5fingerprint> 404 (Not Found)
GET http://<myStagingServer>.heroku.com/assets/<SubDir>/<javascriptFilename2_MD5fingerprint> 404 (Not Found)

I tried adding this to config/application.rb:

config.assets.precompile << '*.js'

But that didn’t do anything as far as I can tell.

Background:

I’m upgrading from Rails 3.0 to 3.1 and enabling the asset pipeline.

Highlights so far:

  • Switching to Heroku’s Cedar stack from Bamboo: heroku create --stack cedar.
  • Switching to "thin" as the production server, which fixed various issues: gem 'thin'.
  • Moving my assets from public/assets to app/assets, updating references in code to use stylesheet_link_tag and javascript_include_tag. (Plus whatever I did for images — they work.)
  • Removing x_sendfile_header config options because Heroku doesn’t support it.

Relevant files:

//  
// application.js  
//  
//= require_self  
//  
  • 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-30T07:37:30+00:00Added an answer on May 30, 2026 at 7:37 am

    OMG: I found the problem:

    javascripts and stylesheets with periods in their names require explicit extensions

    For example:

    # WORKS
    javascript_include_tag "application"
    stylesheet_link_tag "application"
    
    # BROKEN
    javascript_include_tag "jueryui.custom"
    stylesheet_link_tag "jueryui.custom"
    
    # WORKS
    javascript_include_tag "jueryui.custom.js"
    stylesheet_link_tag "jueryui.custom.css"
    

    I guess I can see why this is, but I think that it isn’t very well documented on any of the asset pipeline tutorials. Is it common knowledge that you shouldn’t have periods in your asset filenames?

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

Sidebar

Related Questions

So, the question is: I get some notifications I don't want to get. But
I don't want to use Asset Pipeline for a Rails 3.1 application, so I
My question is similar to this one Rails 3.2 Asset Pipeline with Passenger Endless
I had put an question in StackOverflow yesterday but could not get the answer.
So this question will get technical – eventually – but first check out Hanselminutes
HTML Javascript question to get the selected value of a input-select I can use
From my question at Get Foreign Key Value , I managed to get the
Question: I can get the SQL Server database language by querying: SELECT @@language And
Very basic question - how to get one value from a generator in Python?
Hopefully the last NN question you'll get from me this weekend, but here goes

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.