I think I missed your question ...
Do you want to grab an icon from another site and make it yours?
if this is what you want, you can get it directly from the house icon and save it in your shared folder.
this way: www.facebook.com favicon: www.facebook.com/favicon.ico
take this image and save it as favicon in your shared folder
do it should be enough
if you want this to be dynamic, you can use jquery, but if you want static text, you can put an image tag pointing to: [root URL of website] /favicon.ico
like this: <%= image_tag "#{website.url}/favicon.ico" %>
source share