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.



71
72
73
74
75
76
77
78
79
80
81
# File 'lib/sprockets/railtie.rb', line 71

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"
  super msg
end