link_to google

uh this is so lame.. but how do I link_to an external website?

releod wrote:

uh this is so lame.. but how do I link_to an external website?

>
  

<a href="http://google.com">google</a>
If you need to have a lot of links to one place make a helper for that
link, otherwise just use plain old html for each link.

Matthew Margolis
blog.mattmargolis.net

releod wrote:

uh this is so lame.. but how do I link_to an external website?

link_to('Google', 'http://www.google.com')

or <a href="http://google.com">Google</a> generally works.

releod wrote:

uh this is so lame.. but how do I link_to an external website?
  
here you go :slight_smile:
<%= link_to "Lame Answer", "http://www.lame-site.com/" %>

Cheers
Mohit.

ah gotcha.. I definately know how to do an html ahref haha.. but thanks
for the link_to() example!

this learning curve will be my bitch soon!