diff --git a/app/views/layouts/back_end.html.erb b/app/views/layouts/back_end.html.erb index b102562a..0af047db 100644 --- a/app/views/layouts/back_end.html.erb +++ b/app/views/layouts/back_end.html.erb @@ -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 %>