Robby on Rails: RubyURL gets a few filtersthoughts.sort_by{|t| t[:topic]}.collect tag:www.robbyonrails.com,2005:TypoTypo2006-09-05T22:12:44-04:00Robby Russellurn:uuid:fc9bb10662691707f1db53b3f3a1bd102005-03-14T11:11:12-05:002006-09-05T22:12:44-04:00RubyURL gets a few filters<p>heading to bed.. (finally)</p>
<p>A few people thought they were funny. heh</p>
<p>I’ll work on adding some better error checking tomorrow. I just happen to know how to do it quicker in PostgreSQL.</p>
<pre>
ALTER TABLE rubyurls ADD CONSTRAINT url_exclude
CHECK (
website_url !~ 'goatse' AND
website_url !~ 'rubyurl.com' AND
website_url !~ 'tubgirl');
</pre><p>heading to bed.. (finally)</p>
<p>A few people thought they were funny. heh</p>
<p>I’ll work on adding some better error checking tomorrow. I just happen to know how to do it quicker in PostgreSQL.</p>
<pre>
ALTER TABLE rubyurls ADD CONSTRAINT url_exclude
CHECK (
website_url !~ 'goatse' AND
website_url !~ 'rubyurl.com' AND
website_url !~ 'tubgirl');
</pre>