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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
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 <a> tag directly. -- 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-/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 -~----------~----~----~----~------~----~------~--~---