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?
How are you linking to the images? 2009/5/11 Quijote70 <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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? > > >
Try <img src="/img/head_player.jpg" width="275" height="39" /> Colin 2009/5/11 Sergio Angeletti <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> > 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 <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Try <img src="/img/head_player.jpg" width="275" height="39" /> > > Colin > > 2009/5/11 Sergio Angeletti <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> 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 <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> 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? >> > >> > >> > >> >> > > > > >
In what way is it not xhtml compliant? 2009/5/11 Sergio Angeletti <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> > 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 <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > wrote: > > Try <img src="/img/head_player.jpg" width="275" height="39" /> > > > > Colin > > > > 2009/5/11 Sergio Angeletti <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> > >> 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 <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > >> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes you are right, I make a mistake reading. Sergio On Mon, May 11, 2009 at 2:38 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> In what way is it not xhtml compliant? > > 2009/5/11 Sergio Angeletti <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> 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 <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> >> wrote: >> > Try <img src="/img/head_player.jpg" width="275" height="39" /> >> > >> > Colin >> > >> > 2009/5/11 Sergio Angeletti <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> >> >> 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 >> >> <sergio.angeletti-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> 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? >> >> > >> >> > >> >> > >> >> >> >> >> > >> > >> > > >> > >> >> > > > > >