ruby on rails - How to upload image to assets? Can I do it without adding paperclip? -


from read seems need gem, paperclip upload favicon image.

in application.html.erb have:

<link href="favicon.ico" rel="icon" type="image/x-icon" /> 

then under assets/images created file: favicon.ico

i don't know put in file make favicon work. adding paperclip seems lot of work 1 16 pixel image.

you don't need gem that... add favicon assets folder , add following line application layout:

<%= favicon_link_tag 'favicon.ico' %> 

docs: http://apidock.com/rails/actionview/helpers/assettaghelper/favicon_link_tag


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -