Commit 140e263e

mo k <mo@mokhan.ca>
2012-06-03 07:04:17
add location to profiles#show and profiles#mine
1 parent 144cf82
Changed files (2)
app/views/profiles/mine.html.erb
@@ -10,6 +10,7 @@
         <p>member since: <%= current_user.created_at.to_s :foomat %></p>
         <p>last signed in: <%= current_user.last_sign_in_at.to_s :foomat %></p>
         <hr>
+        <p><%= current_user.city %></p>
         <p>Website or blog: <a  href="<%= current_user.website %>" target="_blank"><%= current_user.website %></a></p>
         <p>Twitter: <a href="https://twitter.com/<%= current_user.twitter %>" target="_blank" class="twitter-follow-button" data-show-count="false">@<%= current_user.twitter %></a></p>
         <p>Facebook:<a  href="<%= current_user.facebook %>" target="_blank"> <%= current_user.facebook %></a></p>
app/views/profiles/show.html.erb
@@ -17,6 +17,7 @@
         <h5><%= current_user.name %></h5>
         <p>member since: <%= current_user.created_at.to_s :foomat %></p>
         <p>last signed in: <%= current_user.last_sign_in_at.to_s :foomat %></p>
+        <p><%= current_user.city %></p>
         <% unless @profile.website.blank? %>
           <p><a  href="<%= @profile.website %>" target="_blank"><%= @profile.website %></a></p>
         <% end %>