Exception: Sprockets::Railtie::ManifestNeededError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sprockets/railtie.rb

Instance Method Summary collapse

Constructor Details

#initializeManifestNeededError

Returns a new instance of ManifestNeededError.



74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/sprockets/railtie.rb', line 74

def initialize
  msg = "Expected to find a manifest file in `app/assets/config/manifest.js`\n" +
  "But did not, please create this file and use it to link any assets that need\n" +
  "to be rendered by your app:\n\n" +
  "Example:\n" +
  "  //= link_tree ../images\n"  +
  "  //= link_directory ../javascripts .js\n" +
  "  //= link_directory ../stylesheets .css\n"  +
  "and restart your server\n\n" +
  "For more information see: https://github.com/rails/sprockets/blob/070fc01947c111d35bb4c836e9bb71962a8e0595/UPGRADING.md#manifestjs"
  super msg
end