My rails app, Rails 4.2.6, had been working perfectly but, after running the bundle exec rails server
command as usual to start my web server for development I got this error message:
DEPRECATION WARNING: The configuration option `config.serve_static_assets`
has been renamed to `config.serve_static_files` to clarify its role (it
merely enables serving everything in the `public` folder and is unrelated
to the asset pipeline). The `serve_static_assets` alias will be removed in
Rails 5.0. Please migrate your configuration files accordingly. (called
from block in <top (required)> at /home/jack/Desktop/Rails/MegsBlog/config
/environments/development.rb:2)
I've tried changing method names in the config files as suggested in other communities and have restarted the server but still no luck, everything in my app works except there are no images which I'm sure is due to the method name changing
/home/jack/Desktop/Rails/MegsBlog/config /environments/development.rb
there should be on second line the old method name:serve_static_assets
you should change it toserve_static_files
. – DonPaulie