I am trying to put a hyperlink in my view and it is not being rendered properly. In my view, I have: <%= link_to ''Search'', ''google.com'' %> the HTML source when rendered is: <a href="google.com">Search</a> However, on the browser, it displays: Search(google.com) If I try and use a standard ''a href='', it does the same thing. Has anyone experienced this before? 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Dec 27, 10:40 pm, dubstep <solut...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am trying to put a hyperlink in my view and it is not being rendered > properly. > > In my view, I have: > > <%= link_to ''Search'', ''google.com'' %> >You''re missing the protocol (http://) Fred> the HTML source when rendered is: > <a href="google.com">Search</a> > > However, on the browser, it displays: > > Search(google.com) > > If I try and use a standard ''a href='', it does the same thing. > > Has anyone experienced this before? > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
dubstep wrote in post #970978:> I am trying to put a hyperlink in my view and it is not being rendered > properly. > > In my view, I have: > > <%= link_to ''Search'', ''google.com'' %> > > the HTML source when rendered is: > <a href="google.com">Search</a>That''s proper HTML. Your app is doing the right thing. (Although you probably want http:// in there.)> > However, on the browser, it displays: > > Search(google.com) > > If I try and use a standard ''a href='', it does the same thing. > > Has anyone experienced this before?Since the HTML is correct, this sounds like a browser display setting. What browser? Any weird plugins or strange CSS or JavaScript? Try a different browser and see what happens.> > Thanks.Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 27 December 2010 22:40, dubstep <solutify-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am trying to put a hyperlink in my view and it is not being rendered > properly. > > In my view, I have: > > <%= link_to ''Search'', ''google.com'' %> > > the HTML source when rendered is: > <a href="google.com">Search</a> > > However, on the browser, it displays: > > Search(google.com) > > If I try and use a standard ''a href='', it does the same thing.Nothing to do with Rails then. Does it happen on all links or just this one? Colin> > Has anyone experienced this before? > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Yes, I know "http://" should have been on the link - it was just a rough example. I resolved this... Turns out that it was the ''print.css'' file from the Blueprint CSS framework. I''ve never used Blueprint before, but there ya go! Thanks guys. On Dec 28, 3:23 am, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 27 December 2010 22:40, dubstep <solut...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I am trying to put a hyperlink in my view and it is not being rendered > > properly. > > > In my view, I have: > > > <%= link_to ''Search'', ''google.com'' %> > > > the HTML source when rendered is: > > <a href="google.com">Search</a> > > > However, on the browser, it displays: > > > Search(google.com) > > > If I try and use a standard ''a href='', it does the same thing. > > Nothing to do with Rails then. Does it happen on all links or just this one? > > Colin > > > > > > > > > > > Has anyone experienced this before? > > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.