First RoR Aplication - images/css paths

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

http://www.site.com/welcome/

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?

2009/5/11 Quijote70 [email protected]

In html

works

works

Try

Colin

2009/5/11 Sergio A. [email protected]

In what way is it not xhtml compliant?

2009/5/11 Sergio A. [email protected]

Yes it works, but is not xhtml compliant, i am looking for a routing
solution?

Sergio

Yes you are right, I make a mistake reading.
Sergio

a good way to avoid such path issues is to use the image_tag
helper method:

image_tag(“icon”) # => Icon