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

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

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -