Um… what is @directories? An array of Directory objects?
@directories.url doesn’t make much sense.
But, link_to is the right “tool” to use for building calls:
If, I’m assuming, @directories is an array of Directory objects, and a
Directory has a url field and an email field, then you could do:
<% @directories.each do |directory| %>
Website <%= link_to directory.url %>
Interested? Contact <%= mail_to directory.email -%>
<%= directory.description %>
<% end %>
On the other hand, if @directories is just an object that has the
three fields (url, email, description), then your original code is
correct and I’d suspect the format or content of the url field. Oh,
and if @directories is just an object, you might want to rethink
things. It is usually good (er… very good) practice to use singular
naming for a single object and plural naming for a collection of