我正在使用使用鏈輪的Sinatra項目。當我在資產文件夾中添加新樣式表時,出現此錯誤:Sinatra上的鏈輪asset_path錯誤
Error compiling CSS asset
Sprockets::NotImplementedError: Custom asset_path helper is not implemented
Extend your environment context with a custom method.
environment.context_class.class_eval do def asset_path(path, options = {}) end end
我在做什麼錯?