1 2 3 4
function create_link($string) {
$input = media_title($string);
...
1 2 3 4
%w[uri net/http hpricot].each {|lib| require lib} url = 'http://en.wikipedia.org/wiki/Night' response = Net::HTTP.get_response(URI.parse(url)) ...
Ruby Absolute links
by michael.twofish,
March 11, 2008 15:02,
No refactoring, tagged with URLs, absolute links, relative links
Converting all URLs in a re...
Please help shorten the cod...