I have tried to use
as well as this
Putting favicon.ico
in my public folder wasn't working, so I combined some of the other answers to come up with this simple working method.
Copy the output of favicon_link_tag and inject image_path
like so:
" rel="shortcut icon" type="image/vnd.microsoft.icon" />
Now place favicon.ico
in your assets/images
folder and you're set.