the link_to url problem

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:

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.