railsとbootstrap-sassでwebappを作成しようとしています。
Ruby On Rails With Bootstrap Tutorial (simple)の指示でインストールしました。rubyレールにbootstrap-sassをインストールした後のエラー
bootstrap-sass gemをインストールしてブラウザでアプリケーションを開こうとすると、ruby/railsでエラーメッセージが表示されます。
Showing C:/Sites/bopp/app/views/layouts/application.html.erb where line #7 raised: TypeError: Das Objekt unterstützt diese Eigenschaft oder Methode nicht.>
エントリ:
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
Ruby on Rails Application coult not include stylesheet nor jsによると、私はそれを変更し、別のエラーを得た:
Showing C:/Sites/bopp/app/views/layouts/application.html.erb where line #7 raised: The asset "default.css" is not present in the asset pipeline.
エントリ:
<%= stylesheet_link_tag "default", media: "all", "data-turbolinks-track" => true %>
<%= javascript_include_tag "default", "data-turbolinks-track" => true %>
私はapplication.cssを変更アプリcation.css.scss。 エントリ:Gemfileで
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/
@import 'bootstrap-sprockets';
@import 'bootstrap';
つだけ変更:
gem 'bootstrap-sass'
私は何も変化しません。
次に、bundle install
を実行しました。
ルビーバージョン:2.3.3
Railsのバージョン:5.1.0(http://railsinstaller.org/enからダウンロード)
OS:Windows 7の
エディタ:崇高テキスト2
ブラウザ:Mozilla Firefoxの
「オブジェクトは、このプロパティまたはメソッドをサポートしていません」との最初のメッセージについてたぶん、いくつかの詳細情報:私はここに答えがあり
//= require_tree .
application.js
からを削除する必要がありました。多分layouts/application.html.erbであるべきファイルの名前、特に行7にあるものは? – Jake