Fix controller js and css loading error

This commit is contained in:
chris 2013-07-30 11:48:14 +08:00
parent af98f8efce
commit c85629d3b3
1 changed files with 2 additions and 2 deletions

View File

@ -5,11 +5,11 @@
<%= render 'layouts/meta' %>
<%= render 'layouts/google_font' %>
<%= stylesheet_link_tag "back_end" %>
<%= stylesheet_link_tag params[:controller] %>
<%= stylesheet_link_tag params[:controller] if Rails.application.assets.find_asset params[:controller] %>
<%= yield :page_specific_css %>
<%= render 'layouts/ie_html5_fix' %>
<%= javascript_include_tag "back_end" %>
<%= javascript_include_tag params[:controller] %>
<%= javascript_include_tag params[:controller] if Rails.application.assets.find_asset params[:controller] %>
<%= yield :page_specific_javascript %>
<%= csrf_meta_tag %>
</head>