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. -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.