0

所以我试图在我的网络应用程序中使用 Bootstrap 之旅。

我已经安装了 Bootstrap……我只是按照这里的文档安装了 Bootstrap 之旅:https ://github.com/tienle/bootstrap-tour-rails

所以首先我添加gem 'bootstrap-tour-rails'到我的 gemfile 中。我捆绑安装。我添加//= require bootstrap-tour到我的 application.js 文件中。*= require bootstrap-tour但是,当我按照 bootstrap-tour rails 说明中的最后一步并添加到我的 application.scss 文件时,我似乎遇到了问题。

这是我的错误消息的屏幕截图

我的 application.hmtl.erb 文件:

<!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.js 文件

// 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.scss 文件

/*
 * 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
 */
4

0 回答 0