Permalink
Browse files

Displaying a me url with a link tag for a user

  • Loading branch information...
konklone committed Apr 28, 2010
1 parent 570a431 commit b6a74230679e08651a399c749ab28e28a626ac3a
Showing with 6 additions and 2 deletions.
  1. +2 −1 fixtures/users.yml
  2. +4 −1 views/index.erb
View
@@ -5,4 +5,5 @@
updated_at: 2010-02-14 22:04:46 -05:00
id: 1
email: jericho@example.com
- url: http://example.com
+ url: "http://example.com"
+ me_url: "http://www.google.com/profiles/jericho"
View
@@ -9,7 +9,10 @@
<meta content="2008" name="copyright" />
<link charset="utf-8" href="/ohnomymoney.css" media="screen" rel="stylesheet" type="text/css" />
- <link href="/worth.xml" rel="alternate" title="Oh No My Money" type="application/rss+xml" />
+ <link href="/<%= user.handle %>/worth.xml" rel="alternate" title="Oh No My Money" type="application/rss+xml" />
+ <% if user.me_url.present? %>
+ <link rel="me" type="text/html" href="<%= user.me_url %>"/>
+ <% end %>
</head>
<body>

0 comments on commit b6a7423

Please sign in to comment.