You can use Rails.application.assets to get the contents of assets after precompilation. Add this to your index.html.erb :
<style type="text/css"> <%= raw Rails.application.assets['application.css'].to_s %> </style> <script type="text/javascript"> <%= raw Rails.application.assets['application.js'].to_s %> </script>
Do not forget raw , otherwise " will be changed to " etc.
Please note that this is not compressed; for production, you probably want to embed compressed code. To do this, add the gem 'uglifier' to your Gemfile, run the package and use this:
<%= raw Uglifier.new(:copyright => false).compile Rails.application.assets['application.js'].to_s %>
source share