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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:29:01+00:00 2026-06-04T19:29:01+00:00

I have a haml page which renders without the css that I am trying

  • 0

I have a haml page which renders without the css that I am trying to reference.

I have this in my application.html.haml

-controller_action = "#{controller_name}##{action_name}"
!!! 5
%html
  %head
    %a {:href => 'http://twitter-bootstrap/twitter-bootstrap-v2/docs/assets/css/bootstrap.css'}
  %body

and I have a page with just this:

.navbar .navbar-fixed-top Hello, World!

which is using the Twitter bootstrap css from here: http://twitter.github.com/bootstrap/

I was expecting to have some of the elements of the css framework to show up on my page, but they are not showing up.

I think it might be a problem with how I try to use the application file to reference the css framework.

  • 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-04T19:29:02+00:00Added an answer on June 4, 2026 at 7:29 pm

    First, the URL you’re using is wrong, then the way you’re importing the CSS is also wrong and lastly you should not serve the CSS file from another website, you should serve it from yours.

    Copy this CSS to your project, inside public/stylesheets if you are using Rails 2.X or app/assets/stylesheets if you are using Rails 3.X and then use the correct helper:

    !!! 5
    %html
      %head
        = stylesheet_link_tag 'bootstrap'
      %body
    

    Then you will have the CSS working correctly.

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

Sidebar

Related Questions

In a Haml based Padrino solution I have an application.haml like this: !!! %html
I have a HAML page that lists some links to delete things that looks
If I have a single page with many forms of existing records: index.html.haml -
I have this Haml view: !!! strict %html{:xmlns => http://www.w3.org/1999/xhtml} %head %meta{:content => text/html;
I have a Rails app (v2.3.8) using HAML (v3.0.25). My application.html.haml currently has the
I have a form, that looks like this (sorry for Haml and the german
I currently have some haml code which reads as %span.flagb.flag-gb this builds me a
I have this HAML page: -content_for :primary_content do Hmmm %strong{:class => code, :id =>
I have this in one of my haml views: -form_for :news_item_comment, :url=>{:id => comment.id,
I have in my app/views/bar/index.html.haml the following %p= render partial: 'foo', collection: @foos the

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.