You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sprockets::Rails::Helper::AssetNotPrecompiled - Asset was not declared to be precompiled in production.
Add `Rails.application.config.assets.precompile += %w( turbolinks.js )` to `config/initializers/assets.rb` and restart your server
This is because turbolinks.js is included as a separate script in the HTML when this config is enabled.
I thinks it's better for turbolinks to be included in application.js so it's managed by sprockets and not a separately loaded JS file. Then you could remove this turbolinks config and add documentation for enabling it by overriding application.js
The text was updated successfully, but these errors were encountered:
Enabling the turbolinks config causes this error:
This is because
turbolinks.js
is included as a separate script in the HTML when this config is enabled.I thinks it's better for turbolinks to be included in
application.js
so it's managed by sprockets and not a separately loaded JS file. Then you could remove this turbolinks config and add documentation for enabling it by overriding application.jsThe text was updated successfully, but these errors were encountered: