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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:16:02+00:00 2026-05-27T09:16:02+00:00

I can’t figure out what is causing this problem. Any ideas or suggestions greatly

  • 0

I can’t figure out what is causing this problem. Any ideas or suggestions greatly appreciated.

I am migrating to Rails 3.1 and everything works Ok in development. But testing a production deployment I get no assets at all… and not for the usual reason 🙂

Best I show what the main javascript include line looks like in my layout.

This line of haml:

= javascript_include_tag 'application'

In Development I get:

<script src="/assets/application.js" type="text/javascript"></script>

In Production the same line looks like:

<script src="/javascripts/all.js?1320673090" type="text/javascript"></script>

In production the include helpers are still acting like I am on 3.0. The assets compile just fine. They are in the public/assets folder (as is the manifest) and nginx serves them just fine if I point my browser to the correct url.

I have checked my Rails version on the server with bundle exec rails -v. I get back the 3.1.3 version. Also, the fact that compilation of assets on the server works as expected should indicate that things are setup “generally ok”. My production environment contains the following asset related lines:

config.serve_static_assets = false
config.assets.compress = true
config.assets.compile = false
config.assets.digest = true
config.assets.precompile << /(^[^_]|\/[^_])[^\/]*/ # from https://gist.github.com/1184843

I am guessing some Gem might be overriding the helpers but only doing it in production?

Repeating: any nudge in the right direction here would be great. 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-27T09:16:02+00:00Added an answer on May 27, 2026 at 9:16 am

    Got it.

    Problem 1: I get bit by Runit every once in a while. Today was such a day.
    There was a problem in config/application.rb referencing old compass fixes. Runit kept the old app running when trying to “hup” into the new one.

    Mental note: Always run rails c production when in doubt.

    After this the asset paths were not 3.0-style but almost. They were now /stylesheets/application.css and similar… not mention of the assets directory.

    Problem 2: Sprockets needs to be required in application.rb (if not requiring rails/all). Why everything worked in development and when compiling in production, I cannot say. But adding a line to require the sprockets railtie solved this problem for me. It never entered my mind that a require could be missing since only the paths were wrong and everything else worked great. Wild guess: the local asset server in development probably requires sprockets masking that the main app is missing it.

    Thanks for taking the time. Sorry to waste it for you.

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

Sidebar

Related Questions

Can't figure out how to do this in a pretty way : I have
Can't work out a way to make an array of buttons in android. This
Can anyone help me trying to find out why this doesn't work. The brushes
can any one tell me how can change this java code into objective c.is
Can anyone (maybe an XSL-fan?) help me find any advantages with handling presentation of
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Can I run this in a Windows command prompt like I can run it
Can anybody help me? What should be the datatype for this type -07:00:00 of
can someone explain why the compiler accepts only this code template<typename L, size_t offset,
Can i get the source code for a WAMP stack installer somewhere? Any help

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.