从 4.0 升级到 4.1 时出现 javascript 错误
我把ace-admin-theme
和lenord-single-page-theme
文件夹下app/assets/
并添加以下内容config/application.rb
29 config.assets.paths << "#{Rails.root}/app/assets/ace-admin-theme"
30 config.assets.paths << "#{Rails.root}/app/assets/lenord-single-page-theme"
.
├── ace-admin-theme
│ ├── avatars
│ ├── css
│ ├── font
│ ├── images
│ ├── img
│ └── js
├── images
├── javascripts
│ └── application.js
├── lenord-single-page-theme
│ ├── css
│ ├── fonts
│ ├── img
│ ├── index.html
│ ├── js
│ └── rs-assets
└── stylesheets
├── application.css.scss
├── custom.css.scss
├── layout.css.scss
├── scaffolds.css.scss
├── users.css.scss
└── welcome.css.scss
我需要在我的app/views/layouts/application.html.haml
2 %html
3 %head
4 %title GooodTheme
5 = stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
6 = javascript_include_tag "application", "data-turbolinks-track" => true
7 / Description, Keywords and Author
11 %meta{content: "width=device-width, initial-scale=1.0", name: "viewport"}/
12 / Styles
13 / Bootstrap CSS
14 %link{href: asset_path("css/bootstrap.min.css"), rel: "stylesheet"}/
15 / Slider Revolution CSS
16 %link{href: asset_path("css/rs-settings.css"), rel: "stylesheet"}/