hi,all
im making one tag,such as : <%=link_to “test”,
{:host=>“www.itsdargens.com”,:controller=>“vivid”}%>
but,the “:host” tag didnt work properly.it always render the “http://
127.0.0.1:3000/vivid” that is my localhost server.
have you ever found the same problem? thanks
Vincent.Z wrote:
hi,all
im making one tag,such as : <%=link_to “test”,
{:host=>“www.itsdargens.com”,:controller=>“vivid”}%>
but,the “:host” tag didnt work properly.it always render the “http://
127.0.0.1:3000/vivid” that is my localhost server.
I ever don’t know there is a :host option. But if you really want to
link to http://a.url.com/vivid, you can using:
<%link_to(“test”, “http://a.url.com/vivid”)%>
or just using a html tag directly.
Vincent.Z wrote:
im making one tag,such as : <%=link_to “test”,
{:host=>“www.itsdargens.com”,:controller=>“vivid”}%>
but,the “:host” tag didnt work properly.it always render the “http://
127.0.0.1:3000/vivid” that is my localhost server.
Try adding an :only_path => false option.
–
We develop, watch us RoR, in numbers too big to ignore.