1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rails gem 'chartkick' エラーが検出

Last updated at Posted at 2019-01-29

<%= javascript_include_tag "//www.google.com/jsapi", "chartkick" %>
ここの部分でエラーが検出されたとき

ActionView::Template::Error (Asset was not declared to be precompiled in production.
Add Rails.application.config.assets.precompile += %w( chartkick.js):eye: to config/initializers/assets.rb and restart your server):

のエラーが表示されてます

太字の部分を config/initializers/assets.rb に書き加えて

再起動で完了です。

今回のエラーは、エラー文をしっかりと読むことで解決できます。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?