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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:47:56+00:00 2026-06-14T07:47:56+00:00

I´m learning Ruby on Rails and tried to implement Twitter Bootstrap. I know how

  • 0

I´m learning Ruby on Rails and tried to implement Twitter Bootstrap. I know how to use and edit it, as I used it before – just without rails.

Setup was done, as suggested here: http://ruby.railstutorial.org/chapters/filling-in-the-layout?version=3.2#sec-custom_css – As I read this book.

The following error occurs: File to import not found or unreadable: bootstrap.scss. while trying to import @import "bootstrap".

Here is my gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.1'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3-ruby'
gem 'bootstrap-sass', '~> 2.1.1.0'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
...

What do I wrong?
Thank you in advance!

Edit:

Do I have to install “Compass” aswell? When checking with gem server I find under “bootstrap-sass” bootstrap-sass 2.1.1.0 [rdoc] [www] - depends on compass, sass-rails.

  • 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-14T07:47:57+00:00Added an answer on June 14, 2026 at 7:47 am

    I just followed the instruction in the link you provided and had no problem using bootstrap. I only did following steps:

    1) edited the Gemfile so that the assets group would look like:

    group :assets do
      gem 'sass-rails',   '~> 3.2.3'
      gem 'coffee-rails', '~> 3.2.1'
      gem 'bootstrap-sass', '~> 2.1.1.0'
      gem 'uglifier', '>= 1.0.3'
    end
    

    2) created the file app/assets/stylesheets/custom.css.scss and placed the following line:

    @import 'bootstrap';
    

    3) generated a scaffold:

    rails g scaffold posts title:string body:text date:date
    

    4) migrated the database:

    rake db:migrate
    

    5) fired up the server

    rails s
    

    6) visit the posts page

    http://localhost:3000/posts
    

    You can view the view the generated css:

    http://localhost:3001/assets/custom.css
    

    where the bootstrap css is folded in.

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

Sidebar

Related Questions

I'm just learning ruby on rails and I have a table of user roles
I'm just learning how to program in Ruby on Rails, and I'm really impressed
I'm just learning ruby on rails and try to configure it to work on
I've only just started learning ruby on rails and I would like to create
I'm just learning Ruby on Rails (no prior Ruby experience) I have these models
I am learning ruby on rails. In my project I use collection_select. My code
I'm learning ruby on rails by following Patrick Lenz's book from Sitepoint. I know
I've just started learning Ruby and Ruby on Rails and came across validation code
I have just started out learning rails and ruby, so please bear with me
I just started learning ruby on rails with Lynda Ruby on Rails 3 Essential

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.