我正在关注本教程,从它告诉我集成引导程序的那一刻起,我就迷失了。我对引导程序一无所知,所以我无法真正解决它。什么都没有发生,格式仍然看起来像标准 HTML,根本没有任何 CSS 样式。
这是我的 application.css.scss 文件:
/*
*= require_self
*= require_tree .
*/
@import 'bootstrap';
这是我的 application.js 文件:
//= require jquery
//= require jquery_ujs
//= require bootstrap
//= require_tree .
这是我的视图文件(home.html.haml):
.container
- if @tasks.empty?
%span.text-warning There are no tasks!
- else
%table.table.table-hover.table-bordered
%thead
%tr
%th Title
%th Created at
%th Completed
%tbody
- @tasks.each do |task|
%tr
%td
%strong= task.title
%td.text-info= task.created_at
%td.text-success= task.completed
我知道这确实很具体,但是由于我对引导程序一无所知,所以我不知道应该关注什么作为问题。我正在运行 Rails 4.0.4,并且 bootstrap-sass gemfile 是 2.3.2.0