Using Rails 2.2.2, I want to display an image that when clicked, will take the user to an external site. I have the following code for this:
<%= link_to(image_tag(model.small_image), model.website_url) %>
However, when this is rendered, the URL has the path (route?) pre- pended to it. So instead of http://www.google.com, I get http://localhost:3000/users/12/www.google.com.
What changes do I need in order to get just http://www.google.com ?
Thanks for any help you can offer.