In Rails 5.1, there is a deprecation warning if we use asset_path for files in public folder.
DEPRECATION WARNING: The asset "favicon.ico" is not present in the asset pipeline.Falling back to an asset that may be in the public folder.
This behavior is deprecated and will be removed.
So I tried public_asset_path
, but it is not working, is there a helper?