Forum: Ruby on Rails Problem in link_to

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Rock R. (Guest)
on 2008-10-06 21:33
Hi. I am developing a Personal Blog using Rails. In Comment model, i
have a database field called "website", which people who comment on an
article may use it to add their website. Its working good. But in the
"show" view of an article, the website link in the comments section is
displayed as http://localhost:3000/articles/ and if i
click it shows a Page not found error.

The code i used is

<% link_to '', ' %>

Someone please solve this issue. Thanks in advance.
Iain A. (Guest)
on 2008-10-06 21:46
(Received via mailing list)
If you want to link to an external address the string must be appended
by protocol you are using (http:// , ftp://)


<%= link_to "", "" %>
Rock R. (Guest)
on 2008-10-06 21:50
Thank you Adams. Problem solved
This topic is locked and can not be replied to.