0

我正在尝试使用rails和bootstrap-sass创建我的网站组合,并且我似乎无法获得列布局的工作。Bootstrap网格无法正常工作rails

这里是一个小提琴:http://jsfiddle.net/thyat/

我的样式表是空的,我的HAML代码搜索似乎没有列小提琴后

!!! 
%html 
    %head 
    %title #{ full_title(yield(:title))} 
    = stylesheet_link_tag :application, :media => "all", "data-turbolinks-track" => true 
    = javascript_include_tag :application, "data-turbolinks-track" => true 
    = csrf_meta_tags 
    %meta{ "http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" } 
    = render 'layouts/shim' 
    %body 
    .container 
     = render 'layouts/header'  

     = yield  

     = render 'layouts/footer'  

头布局

.row 
    %header 
    .col-lg-2.col-md-2.logo-image 
     = image_tag 'https://s3-us-west-2.amazonaws.com/mikaimages/star.png', alt: 'Eight fold star' 
    .col-lg-4.col-md-4.logo-text 
     %p Mika 
     %p Kalathil  

    %nav.col-lg-6.col-md-6 

编辑在CSS中已经由bootstrap设置。任何人?

回答

2

根据你的小提琴,你的HTML是基于自举3 编码(参见COL-MD-2等)

然而,你的CSS似乎是基于自举2.3.1。语法不同。 Bootstrap 2.3.1改为使用span2。

您可能会想引用Bootstrap-sass gem来安装引导程序3.