Is there a way to manually specify the root url that a <%= link_to %>
generates? So i can make an auto generated url that used to go to
mywebsite.myhost.com/comments be go to example.com/comments ?


The reason, if you're wondering is that I have hosting at a site and my
domain forwarded and masked through go-daddy. This means when you go to
example.com you are seeing content on mywebsite.myhost.com but the url
shows up as example.com. The problem comes when you click on a link for
lets say comments, for whatever reason instead of showing
example.com/comments in the url it just shows example.com.  If you type
example.com/comments directly into the address bar though, everything
works great  you get the content you expect and the url you expect. So
how can i make my <%= link_to %>'s use example.com as the base url
instead of mywebsite.myhost.com???
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to