I routed the page
www.site.com to a controller "welcome"
config/routes.rb: map.root :controller => "welcome"
after this action
the home page
http://www.site.com ho reads the action index works fine
but if I call
the links fo the images goes wrong, the same if a call othes action
can you help me?
How are you linking to the images?
Quijote70
(Quijote70)
3
In html
works
<img src="../img/head_player.jpg" width="275" height="39" />
works
<img src="img/head_player.jpg" width="275" height="39" />
Quijote70
(Quijote70)
5
Yes it works, but is not xhtml compliant, i am looking for a routing
solution?
Sergio
In what way is it not xhtml compliant?
Yes you are right, I make a mistake reading.
Sergio
11175
(-- --)
8
a good way to avoid such path issues is to use the image_tag
helper method:
image_tag("icon") # => <img src="/images/icon" alt="Icon" />