Yes it works, but is not xhtml compliant, i am looking for a routing solution?
Sergio On Mon, May 11, 2009 at 12:14 PM, Colin Law <[email protected]> wrote: > Try <img src="/img/head_player.jpg" width="275" height="39" /> > > Colin > > 2009/5/11 Sergio Angeletti <[email protected]> >> >> In html >> >> http://www.site.com/welcome/ >> works >> >> <img src="../img/head_player.jpg" width="275" height="39" /> >> >> http://www.site.com/ >> works >> <img src="img/head_player.jpg" width="275" height="39" /> >> >> >> On Mon, May 11, 2009 at 10:23 AM, Quijote70 <[email protected]> >> wrote: >> > 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 >> > >> > http://www.site.com/welcome/demos >> > >> > can you help me? >> > >> > >> > >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

