First RoR Aplication - images/css paths

I routed the page to a controller “welcome”

config/routes.rb: map.root :controller => “welcome”

after this action

the home page 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?

2009/5/11 Quijote70 [email protected]

In html



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


Yes you are right, I make a mistake reading.

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

image_tag(“icon”) # => Icon

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs