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
If you use the assets group with Bundler, please make sure that your config/application.rb has the following Bundler require statement:
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
Bundler.require *Rails.groups(:assets => %w(development test))
# If you want your assets lazily compiled in production, use this line
# Bundler.require(:default, :assets, Rails.env)
end
Instead of the old Rails 3.0 version:
# If you have a Gemfile, require the gems listed there, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
The text was updated successfully, but these errors were encountered:
"rails new x" generates x/config/application.rb containing:
but http://guides.rubyonrails.org/asset_pipeline.html says:
If you use the assets group with Bundler, please make sure that your config/application.rb has the following Bundler require statement:
Instead of the old Rails 3.0 version:
The text was updated successfully, but these errors were encountered: