Although all of these answers suggest creating a 16x16 icon, in reality you have to create both 16x16 and 32x32 to support retina displays. None of the online generators could handle this.
The Mac has a great $ 5 app called Icon Slate , which makes it easy to create both formats in one ICO file.
On Windows, I used Axialis IconWorkshop with great success, but it is a much heavier tool and significantly more expensive at around € 50.
Both will create an ico file with 16x16 and 32x32 images inside it.
If you use the asset pipeline, use the app / assets / images folder, not / public. The number of browsers that ignore the link tag quickly approaches zero, so you should not jump through hoops to place them.
As mentioned in other answers, use this in head to display it:
<%= favicon_link_tag 'favicon.ico' %>
Tim Sullivan 04 Oct '13 at 17:11 2013-10-04 17:11
source share