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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:16:18+00:00 2026-05-30T12:16:18+00:00

I went through the compass 3.2 pain and I thought i had it working

  • 0

I went through the compass 3.2 pain and I thought i had it working beautifully a month or so back

However oddly my images seem flaky. They will work for a day straight, I will crank some code the next day i wake up and fire up webrick and the images dont appear.

My Compass/Sass all works beautifully partials/plugins and all that goodness. But I notice almost daily that when I start work. My images wont show up on my “development” webrick environment

My log says

Started GET “/assets/home/sms.png” for 127.0.0.1 at 2012-02-23 07:22:55 -0500
Served asset /home/sms.png – 200 OK (8ms)

or occasionally…

Started GET “/assets/home/sms.png” for 127.0.0.1 at 2012-02-23 08:01:27 -0500
Served asset /home/sms.png – 304 Not Modified (0ms)

But its a 0Byte file.

I usually try a
rake assets:clean:all RAILS_ENV=development RAILS_GROUPS=assets

and I usually try incrementing
config.assets.version= ‘3’ in the config/application.rb

And after a few random attempts.. images start to appear. BUT i have no clue what the magic is..

I also have deleted the public/images and other sub folders..

Do you have any thoughts/recommendations? Really killing my productivity. I should mention when images are not working /Compass continues to work like a charm

this my application.rb

42 config.filterparameters += [:password]
43 config.assets.enabled = true
44 config.sass.line_comments = false
45 config.sass.syntax = :nested
46 #config.assets.precompile << /(^[^]|\/[^])[^\/]*/
47 #http://blog.55minutes.com/2012/01/getting-compass-to-work-with-rails-31-and-32/

48 config.assets.precompile << /(^[^\/]|\/[^_])[^\/]*$/
49 config.sass.preferred_syntax = :sass
50 config.assets.version= '3'

this is my gemfile.rb

45 group :production do
46 # gem 'thin'
47 end
48
49 group :assets do
50 gem 'tilt', :git => 'git://github.com/rtomayko/tilt.git'
51 gem 'sass-rails', '~>3.2.0'
52 gem 'coffee-rails'
53 gem 'uglifier'
54 gem 'compass', '~> 0.12.alpha'
55 gem 'compass-susy-plugin', :require => 'susy'
56 gem 'compass-960-plugin'
57 gem 'fancy-buttons'
58 end

Any help would be appreciated and oh yes..i cleared my browser cache

  • 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-30T12:16:20+00:00Added an answer on May 30, 2026 at 12:16 pm

    Images of zero bytes in length sounds suspiciously like the behavior controlled by action_dispatch.x_sendfile_header (normally only found in production.rb), where Rails sends a special X-Sendfile or X-Accel-Redirect header intended for the web server, rather than serving the image data itself. Using a tool like Safari or Chrome’s Web Inspector, check the headers being returned with the zero-byte image. If these special headers are there, it could mean that you’ve mistakenly included production-specific settings into your development config.

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

Sidebar

Related Questions

I went through a document at Adobe Livedocs that describes working with pdf: http://livedocs.adobe.com/flex/3/html/help.html?content=PDF_1.html
I went through local variables and class variables concept. But I had stuck at
I just installed Delphi XE 2 and went through the whole installation process; however,
I went through all the steps with eclipse indigo, and I can't seem to
I went through couple of template matching tutorials and I had noticed that most
I went through and had the program System.exit(0) whenever the user clicked the window's
I went through these topics Generics..? Super T Bounding generics with 'super' keyword However,
I went through this whole procedure http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx a couple weeks ago and got https
I went through some tutorials on the State monad and I think I got
I went through the example from apple MoviePlayer on iPhone Im trying to overlay

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.