Today I had to use some Ruby code to create an RSS Reader to import our Typepad blog into our Rails Template.
Check it out below. It’s crazy simple:
1
2
3
4
5
6
7
8
9
10
11
12
<%
require ‘rubygems’
require ’simple-rss’
require ‘open-uri’
rss = SimpleRSS.parse open(’http://twitter.com/statuses/user_timeline/15248843.rss’)
%>
<% rss.items.each do |i| %>
<h3><%= i.title %></a></h3>
<p><%= i.summary %></p>
<a href="<%= i.link %>" target="_blank">Link [...]
A couple of my friends don’t quite understand the value of Twitter so I thought I’d write a short blog to go over how to use Twitter as an informational resource.
What the #$@! is Twitter
Twitter is a blog that allots the same amount of characters as a text message, so the posts are short and [...]