In Rails 5.1.3 I change logo file in app/assets/images Then error don't know what to fix. Any one know ?
The asset "logo.png" is not present in the asset pipeline.
Already try restart rails, rails clean, rails or rails assets:precompile
Here my config/initializers/assets.rb
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'
# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
# Add Yarn node_modules folder to the asset load path.
Rails.application.config.assets.paths << Rails.root.join('node_modules')
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
I had a similar problem. The solution was to add the file extension on the image.
= image_tag 'logo', alt: ''
to
= image_tag 'logo.jpg', alt: ''