Image setting

Hi, I know it may sound silly, but I can not place my image so that it appears in all my pages,

I defined it like this: {{link_to("index", '<img src="./img/logo2.png"/>')}} http://www.image-heberg.fr/files/15223445661196940989.png

but I have this problem:

http://www.image-heberg.fr/files/1522344549376040662.png http://www.image-heberg.fr/files/1522344511418396274.png

is there a way to set it to display properly in all pages?

Never use relative path for anything better use absolute {{link_to("index", '<img src="/img/logo2.png"/>')}}

Good luck

edited 24d ago

Never use relative path for anything better use absolute {{link_to("index", '<img src="/img/logo2.png"/>')}}

Good luck

I tried but it does not work , My image is no longer displayed on any pages. I do not know if I have to define anything before doing this, I do not understand very well how the program finds the different files

http://www.image-heberg.fr/files/1522347458136255886.png

http://www.image-heberg.fr/files/15223473071669650262.png //i rename my image in logo.png //

config : http://www.image-heberg.fr/files/15223476661538396497.png http://www.image-heberg.fr/files/15223476911401187291.png

index.php: http://www.image-heberg.fr/files/15223477131525919632.png

I do not understand because my link css works and it's almost the same path : http://www.image-heberg.fr/files/15223473631743209021.png



34.3k

Hi,

did you try:

{{ link_to("index", image("img/logo2.png") }}