所以我正在尝试使用我的网络应用程序使用Bootstrap游览。
我已经安装了Bootstrap ...我只是按照这里的文档来安装Bootstrap游览:https://github.com/tienle/bootstrap-tour-rails
首先我将//= require bootstrap-tour
添加到我的gemfile中。
我捆绑安装。
我在我的application.js文件中添加了*= require bootstrap-tour
。
但是当我按照bootstrap-tour rails指令的最后一步并将<!DOCTYPE html>
<html>
<head>
<title>WalkThru Demo</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
<body>
<%= yield %>
</body>
</html>
添加到我的application.scss文件中时,我似乎遇到了问题。
Here is a screenshot of my error message
我的application.hmtl.erb文件:
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file. JavaScript code in this file should be added after the last require_* statement.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-tour
//= require popper
//= require tether
//= require bootstrap-sprockets
//= require_tree .
我的application.js文件
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*= require bootstrap-tour
*/
我的application.scss文件
arr[x] === kiwi"