我有 Rails 应用程序。
问题:文件 app/stylesheets/application.css 在输出 html 中没有变化。应用程序.css
body {
font-family: micfont;
background-color: lightgrey;
min-width: 1200px;
padding: 10px;
padding-bottom: 100px;
background-image: url(header.jpg);
}
应用程序/视图/布局/index.html.haml
%html
%head
%title SkyDance
= stylesheet_link_tag "application", :media => "all"
= javascript_include_tag "application"
= stylesheet_link_tag "bootstrap_and_overrides", :media => "all"
= csrf_meta_tags
%body
.navbar-wrapper.navbar-margin-top
.container
.navbar.navbar-opacity-white
.navbar-inner
%a.btn.btn-navbar{ "data-target" => ".nav-collapse", "data-toggle" => "collapse" }
.nav-collapse.collapse
%ul.nav
%li
%a{ :href => about_welcome_index_path }= t('.about_us')
%li
%a{ :href => schedule_path }= t('.schedule_and_prices')
%li
%a{ :href => genres_path }= t('.dances')
%li
%a{ :href => teachers_path }= t('.teachers')
%li
%a{ :href => contacts_welcome_index_path }= t('.contacts')
.row-fluid
.container.content
= yield
= render 'layouts/footer'