Commit 07517551

mo k <mo@mokhan.ca>
2012-06-06 03:17:47
make twitter, facebook and website actual links on the profiles#index page.
1 parent efa7e61
Changed files (1)
app
views
app/views/profiles/index.html.erb
@@ -37,9 +37,9 @@
             <td><%= profile.city %></td>
             <td><%= profile.latitude %></td>
             <td><%= profile.longitude %></td>
-            <td><%= profile.twitter %></td>
-            <td><%= profile.facebook %></td>
-            <td><%= profile.website %></td>
+            <td><a href="<%= profile.twitter %>"><%= profile.twitter %></a></td>
+            <td><a href="<%= profile.facebook %>"><%= profile.facebook %></a></td>
+            <td><a href="<%= profile.website %>"><%= profile.website %></a></td>
             <td><a href="<%= url_for profile_path(profile) %>"><%= profile.creations.length %> creations</a></td>
             <td><%= profile.created_at.to_s :foomat %></td>
           </tr>