javascript - How do I completely remove all references to application.js and application.css in a Rails app? -
i'm working in rails 4.2.4 deploy simple web api. interface not require javascript or css, requests application.js
, application.css
generating log spam , increasing response times. have tried disabling assets , skipping sprockets, pages served app continue reference application.js
, application.css
, in "hello, world!" controller generated getting started guide.
how can permanently disable references these non-existent, unrequired files?
modify ./app/views/layouts/application.html.erb
have following content:
<%= yield %>
in other words, remove <html>
, <head>
, , <body>
tags. there several other ways achieve objective, might easiest.
Comments
Post a Comment