How do I use a favicon in rails 6 ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How do I use a favicon in rails 6 ?

fugee ohu
I tried creating a favicons folder under app/javascripts/images/favicons and a favicons.js file in app/javascripts/packs and an import statement in app/javascripts/packs/application.js to load the favicons.js file but I just got an error from webpacker that there was no entry in manifest.json for favicon.ico I had tried to follow the tutorial here https://medium.com/tech-angels-publications/bundle-your-favicons-with-webpack-b69d834b2f53

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dbfe8f63-8cc6-41b2-93a6-85a0f3e2a2f4%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How do I use a favicon in rails 6 ?

Ariel Juodziukynas
Why don't you just put the favicon.ico file on your /public folder? do you have something special to use javascript for this?

El lun., 9 dic. 2019 a las 18:51, fugee ohu (<[hidden email]>) escribió:
I tried creating a favicons folder under app/javascripts/images/favicons and a favicons.js file in app/javascripts/packs and an import statement in app/javascripts/packs/application.js to load the favicons.js file but I just got an error from webpacker that there was no entry in manifest.json for favicon.ico I had tried to follow the tutorial here https://medium.com/tech-angels-publications/bundle-your-favicons-with-webpack-b69d834b2f53

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dbfe8f63-8cc6-41b2-93a6-85a0f3e2a2f4%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcCoWFewERBEw1%3DNe7fB9%2BWq9_3%2BScTimCMJQuL1gEjPbw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How do I use a favicon in rails 6 ?

fugee ohu


On Monday, December 9, 2019 at 4:58:45 PM UTC-5, Ariel Juodziukynas wrote:
Why don't you just put the favicon.ico file on your /public folder? do you have something special to use javascript for this?

El lun., 9 dic. 2019 a las 18:51, fugee ohu (<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="AjD-oGE3BAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...>) escribió:
I tried creating a favicons folder under app/javascripts/images/favicons and a favicons.js file in app/javascripts/packs and an import statement in app/javascripts/packs/application.js to load the favicons.js file but I just got an error from webpacker that there was no entry in manifest.json for favicon.ico I had tried to follow the tutorial here <a href="https://medium.com/tech-angels-publications/bundle-your-favicons-with-webpack-b69d834b2f53" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmedium.com%2Ftech-angels-publications%2Fbundle-your-favicons-with-webpack-b69d834b2f53\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGu2W5OrBE33Q0haiEIHbyS6uSLIg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmedium.com%2Ftech-angels-publications%2Fbundle-your-favicons-with-webpack-b69d834b2f53\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGu2W5OrBE33Q0haiEIHbyS6uSLIg&#39;;return true;">https://medium.com/tech-angels-publications/bundle-your-favicons-with-webpack-b69d834b2f53

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="AjD-oGE3BAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/dbfe8f63-8cc6-41b2-93a6-85a0f3e2a2f4%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/dbfe8f63-8cc6-41b2-93a6-85a0f3e2a2f4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/dbfe8f63-8cc6-41b2-93a6-85a0f3e2a2f4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/dbfe8f63-8cc6-41b2-93a6-85a0f3e2a2f4%40googlegroups.com.

I don't know Can you look at the page and tell me if it works for you

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bf34e030-ddfa-420c-b0f2-79105547c9ba%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How do I use a favicon in rails 6 ?

Ariel Juodziukynas
What I mean is that you don't really need webpacker for the favicon, you can just put the favicon.ico file inside app/public and it should work

El mar., 10 dic. 2019 09:53, fugee ohu <[hidden email]> escribió:


On Monday, December 9, 2019 at 4:58:45 PM UTC-5, Ariel Juodziukynas wrote:
Why don't you just put the favicon.ico file on your /public folder? do you have something special to use javascript for this?

El lun., 9 dic. 2019 a las 18:51, fugee ohu (<[hidden email]>) escribió:
I tried creating a favicons folder under app/javascripts/images/favicons and a favicons.js file in app/javascripts/packs and an import statement in app/javascripts/packs/application.js to load the favicons.js file but I just got an error from webpacker that there was no entry in manifest.json for favicon.ico I had tried to follow the tutorial here https://medium.com/tech-angels-publications/bundle-your-favicons-with-webpack-b69d834b2f53

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dbfe8f63-8cc6-41b2-93a6-85a0f3e2a2f4%40googlegroups.com.

I don't know Can you look at the page and tell me if it works for you

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bf34e030-ddfa-420c-b0f2-79105547c9ba%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcCACePp818h90e_RmcCbY3z6ND4wttS_%2B0THVsr-xn5nA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How do I use a favicon in rails 6 ?

fugee ohu


On Tuesday, December 10, 2019 at 8:20:09 AM UTC-5, Ariel Juodziukynas wrote:
What I mean is that you don't really need webpacker for the favicon, you can just put the favicon.ico file inside app/public and it should work

El mar., 10 dic. 2019 09:53, fugee ohu <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="vsQEgqlpBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...> escribió:


On Monday, December 9, 2019 at 4:58:45 PM UTC-5, Ariel Juodziukynas wrote:
Why don't you just put the favicon.ico file on your /public folder? do you have something special to use javascript for this?

El lun., 9 dic. 2019 a las 18:51, fugee ohu (<[hidden email]>) escribió:
I tried creating a favicons folder under app/javascripts/images/favicons and a favicons.js file in app/javascripts/packs and an import statement in app/javascripts/packs/application.js to load the favicons.js file but I just got an error from webpacker that there was no entry in manifest.json for favicon.ico I had tried to follow the tutorial here <a href="https://medium.com/tech-angels-publications/bundle-your-favicons-with-webpack-b69d834b2f53" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmedium.com%2Ftech-angels-publications%2Fbundle-your-favicons-with-webpack-b69d834b2f53\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGu2W5OrBE33Q0haiEIHbyS6uSLIg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmedium.com%2Ftech-angels-publications%2Fbundle-your-favicons-with-webpack-b69d834b2f53\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGu2W5OrBE33Q0haiEIHbyS6uSLIg&#39;;return true;">https://medium.com/tech-angels-publications/bundle-your-favicons-with-webpack-b69d834b2f53

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/dbfe8f63-8cc6-41b2-93a6-85a0f3e2a2f4%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/dbfe8f63-8cc6-41b2-93a6-85a0f3e2a2f4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/dbfe8f63-8cc6-41b2-93a6-85a0f3e2a2f4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/dbfe8f63-8cc6-41b2-93a6-85a0f3e2a2f4%40googlegroups.com.

I don't know Can you look at the page and tell me if it works for you

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="vsQEgqlpBAAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/bf34e030-ddfa-420c-b0f2-79105547c9ba%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/bf34e030-ddfa-420c-b0f2-79105547c9ba%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/bf34e030-ddfa-420c-b0f2-79105547c9ba%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/bf34e030-ddfa-420c-b0f2-79105547c9ba%40googlegroups.com.

Why is rails complaining that it's not in manifest.json am I missing entries in package.json?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b3f19d1c-c369-40da-acfa-0daa4f6816d7%40googlegroups.com.