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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:56:28+00:00 2026-06-11T23:56:28+00:00

I started using the asset_sync gem in order to use Amazon S3 as a

  • 0

I started using the asset_sync gem in order to use Amazon S3 as a CDN asset host (I am using Heroku and RoR). All of my assets are loading correctly, except for the icons I am using through Twitter Bootstrap (There is just a blank space where the icon should be).

I tried using Heroku’s multiple asset pre-processor support:

app/assets/stylesheets/custom.css.scss.erb

background-image: url(<%= asset_path "../img/glyphicons-halflings.png"%>);

I also tried moving the glyphicons-halflings.png directly into the images folder and referencing it there:

app/assets/stylesheets/custom.css.scss.erb

background-image: url(<%= asset_path "/assets/glyphicons-halflings.png"%>);

app/assets/stylesheets/custom.css.scss

background-image: url("/assets/glyphicons-halflings.png");

However, I’ve haven’t found a way to make it work. Any suggestions on how to get the Twitter Bootstrap icons to work successfully with S3/Heroku would be greatly appreciated.

EDIT: I am using: gem 'bootstrap-sass', '~> 2.0.2'

  • 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-06-11T23:56:30+00:00Added an answer on June 11, 2026 at 11:56 pm

    If you are using gem 'bootstrap-sass', the following is a solution that worked for me.

    First, download bootstrap from the bootstrap website. Extract the two icon .png files (glyphicons-halflings.png and glyphicons-halflings-white.png) and copy them into your apps image directory (app/images).

    In your custom.css.scss file (this could be a different name depending on your app) enter the following at the top of your stylesheet (before you import bootstrap) to override the icon image path:

     $iconSpritePath: url('/assets/glyphicons-halflings.png');
     $iconWhiteSpritePath: url('/assets/glyphicons-halflings-white.png');
    
     @import "bootstrap";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started using NetBeans today, and it was all going swimmingly, until I came
I have recently started using the Rackspace Cloudfiles CDN (Limelight), about which I have
When I learned about proxy_options I started using it to test all my named
Recently I started using the <html manifest=cache.appcache> method for storing assets in my PhoneGap
I've started a new rails project using the following gemfile : source 'https://rubygems.org' gem
I originally started out displaying a web page in the assets folder using a
Started using Visual Studio 2012 RC since yesterday, We have one WCF solution. Whenever
I started using backbone for my projects. I finished a simple project and it
I started using srbac in Yii. The options that are available: create a role,
I started using the Mojolicious library for testing and everything was working fine in

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.