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

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -