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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:04:44+00:00 2026-05-26T11:04:44+00:00

I am new to web development using rails. I was wondering what the steps

  • 0

I am new to web development using rails. I was wondering what the steps are to adding blueprint to my application are. I have looked for a tutorial but the once I have found seem to assume some prior knowlede and that a few steps were completed.

Right now I have compass, scss, haml bundled in my application. From here I would like to find a tutorial explaining where each blueprint scss file should go.

I am a little under educated in the issue but from what I read i need to make a blueprint folder and add a blueprint.css file both within the app/assets/stylesheets directory. I am not sure if there is a gem or any specific installation steps or generator command to run to set things up… which seems strange to me.

Thanks for any help

  • 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-26T11:04:44+00:00Added an answer on May 26, 2026 at 11:04 am

    GTDev,

    I don’t know anything about Compass, but I can show you how I’m using Blueprint with the new Asset Pipeline. It’s woking well, and it feels like the Rails Way to me.

    First problem: Where does the blueprint folder go? Like many things in Rails, you have a few options, but some options are better than others. If you haven’t already, I highly recommend that you take some time to watch the creator of Rails speak about the Asset Pipeline. [RailsConf 2011 Keynote] Anyway, so they created these empty folders in order to encourage the abstraction of stylesheets and javascripts, in terms of who wrote the code, and for what purpose. Whereas before, we treated them sortof as 2nd class citizens, by dumping everything into the public folder, which is kindof nasty. Now, since blueprint is a framework written by someone else, it belongs in the vendor/assets/stylesheets folder. So, after you download and unzip blueprint, go into the joshuaclayton-blueprint-css-[hex] folder and cut the blueprint subfolder. Paste it into your vendor/assets/stylesheets folder.

    Second problem: How do I make sure that the stylesheets are applied conditionally?
    You’ll need to create 3 files. vendor.css, vendor-print.css, & vendor-ie.css

    $ mate vendor/assets/stylesheets/vendor.css
    $ mate vendor/assets/stylesheets/vendor-print.css
    $ mate vendor/assets/stylesheets/vendor-ie.css
    

    Substitute mate for your favorite text editor. If you prefer GUI, just make a new file, and Save As… now copy and paste.

    vendor.css file looks like this:

    /*
     * vendor.css
     * 3rd party libraries for computer displays
     *= require blueprint/screen
    */
    

    vendor-print.css file looks like this:

    /*
     * vendor-print.css
     * 3rd party libraries for printed media
     *= require blueprint/print
    */
    

    vendor-ie.css file looks like this:

    /*
     * vendor-ie.css
     * 3rd party libraries for IE compatibility
     *= require blueprint/ie
    */
    

    Save & close those files. You’re almost done. We just have to call the files now from our template.

    Notice that we made no changes to app/assets/stylesheets/application.css. It’s fresh-out-the-box 🙂

    Open app/views/layouts/application.html.haml. If it doesn’t exist, delete app/views/layouts/application.html.erb and create the new file. It should look pretty much like this:

    !!! 5
    %html{:lang => "en-US"}
        %head
            %meta{:charset => "utf-8"}
            = csrf_meta_tags
            = stylesheet_link_tag    "vendor",       :media => "screen"
            = stylesheet_link_tag    "application",  :media => "screen"
            = stylesheet_link_tag    "vendor-print", :media => "print"
            /[if lt IE 8]
                = stylesheet_link_tag  "vendor-ie",  :media => "screen"
            = javascript_include_tag "application"
            /[if lt IE 9]
                %script{:src => "http://html5shiv.googlecode.com/svn/trunk/html5.js"}
            %title foo
        %body
            = yield
    

    That should do it. Restart your server, and see what happens.

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

Sidebar

Related Questions

I have been using mysql in a new rails application, but now I wanted
I am new to web development, I have to create a web application in
I'm new to web development and have started using JSONP and Google's Feed API
I am new in Rails and web development... I have created a User model,
I'm new to ruby on rails so i'm using the book Agile Web Development
I'm pretty new to web development. Lately I have been making a site using
I am relatively new to web development and learning all the time. I have
I'm new to web development and am just wondering about best practices for java
I have started developing a new Rails app on my server using RVM, Rails
Hi I'm starting a new web development project with my team using Hibernate and

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.