Я только что начал свое первое приложение для рубинов.рубин на рельсах и активах
Я скопировать CSS и JS файлы, необходимые для моего приложения в папку активов, и когда я запустить приложение все CSS и JS загружается на страницу, и я не хочу, что
мой взгляд просто
hello
мой application.css только комментарии
/*
* 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 vendor/assets/stylesheets of plugins, if any, 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 top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require_tree .
*/
Почему все активы загружены? Могу ли я «отключить» это?
Все, что я хочу, чтобы определить файлы (CSS, JS) необходимо в файле представления с конкретными JS порядка и нагрузки, необходимые только для страницы specifif
Рекомендуемое чтение: http: // guide. rubyonrails.org/asset_pipeline.html – givanse