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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:34:51+00:00 2026-05-26T08:34:51+00:00

My problem: All images aren’t loaded correctly when I start my app in production

  • 0

My problem: All images aren’t loaded correctly when I start my app in production mode.
I see only a placeholder for the image. When I copy the image-url I get “assets/mylogo.png”. I miss the fingerprint.

My config:

Gems:

rails 3.1.0
compass, :git => 'git://github.com/chriseppstein/compass.git'
sprockets 2.0.2

config/application.rb :

config.assets.enabled = true

config/environments/production.rb :

config.cache_classes = true
config.consider_all_requests_local       = false
config.action_controller.perform_caching = true
config.serve_static_assets = false
config.assets.compress = true

After the deploy I run

rake assets:clean
rake assets:precompile

In the public/assets folder are all images (and js, css files) with the fingerprint at the end.

In development mode everything works fine. I can’t figure out why the images aren’t correctly used.

  • 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-26T08:34:51+00:00Added an answer on May 26, 2026 at 8:34 am

    I see the problem. You are missing these lines in your production config:

    config.assets.digest = true
    config.assets.compile = false
    

    The first turns on the addition of digests to the output from the helpers.

    The second tells rails to NOT hand any requests for assets back to Sprockets, but to assume that they are precompiled (which is what you want).

    In Rails 3.1.0 only digested assets are precompiled, which is why you got a placeholder. In 3.1.1 the non digest versions are also compiled, so you config would have worked, but the best practice is with digests on.

    The last section of the assets pipeline guide has a list of the correct config options for default operation.

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

Sidebar

Related Questions

Problem Hello all! I have this code which takes my jpg image loops through
Problem: I am having trouble implementing a recursive image lazy load in all relevant
because of bandwith problem, i'd like to block all images while using cURL on
I have created a simple JSF image browsing app, and I'm having a problem
So I'm been pounding on this problem all day. I've got a LinqDataSource that
I had no problem at all running the following code on a local server,
This is a common problem for all developers, I am looking for the best
I have a (big) problem that all of you that work with Webforms might
I periodically get this problem where all of a sudden mako is using old
im making some script with mechanize.browser module. one of problem is all other thing

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.