HYUDORO

勉強したことや日記など

Rails の chartkick.js のエラーを解決する

f:id:yagyosan:20181206204137p:plain

開発環境構築中に下記のエラーが表示された。

Asset filtered out and will not be served: add Rails.application.config.assets.precompile += %w( chartkick.js ) to config/initializers/assets.rb and restart your server

config/initializers/assets.rbRails.application.config.assets.precompile += %w( chartkick.js ) を書き加えろとのことなので、そのようにした。

そのあと再起動して、解決しました。