Made recommended changes to application.rb to support asset precompile.