1 2 3 4
# This method searches a source by the http, the www and the trailing / to a url def self.find_by_url(url) Source.find :first, :conditions => [ " url = ? OR url = ? OR url = ? OR url = ? ", url, url.gsub("http://", "http://www"), url + "/", url.gsub("http://", "http://www")+"/"] ...
Hi!
I've a got a website A...