<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Validating URL/URI in Ruby on Rails</title>
	<atom:link href="http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/</link>
	<description>A goal is a dream with a deadline.</description>
	<pubDate>Sun, 05 Jul 2009 00:45:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adrian</title>
		<link>http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/comment-page-1/#comment-199891</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Sat, 20 Jun 2009 19:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/07/validating-urluri-in-ruby-on-rails/#comment-199891</guid>
		<description>Thanks for your helpful code!</description>
		<content:encoded><![CDATA[<p>Thanks for your helpful code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ~fluoro~</title>
		<link>http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/comment-page-1/#comment-195908</link>
		<dc:creator>~fluoro~</dc:creator>
		<pubDate>Thu, 28 May 2009 13:33:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/07/validating-urluri-in-ruby-on-rails/#comment-195908</guid>
		<description>Tim and santosh: you should put the
require 'validates_uri_existence_of'
at the very begin or at the very end of your config/environment.rb, i.e. not inside the Rails::Initializer block</description>
		<content:encoded><![CDATA[<p>Tim and santosh: you should put the<br />
require &#8216;validates_uri_existence_of&#8217;<br />
at the very begin or at the very end of your config/environment.rb, i.e. not inside the Rails::Initializer block</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/comment-page-1/#comment-187685</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 24 Apr 2009 16:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/07/validating-urluri-in-ruby-on-rails/#comment-187685</guid>
		<description>Hi Ilya,
Thanks for this - it's super. 
I'm having a problem.  It works on my local machine, but when i deploy to my server i get the following error.  I have included the validates_uri_existence_of.rb and the edit to the environment.rb.
Your help is greatly appreciated.

Tim

** Starting Mongrel listening at 0.0.0.0:42980-9
** Starting Rails with production environment...
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/base.rb:1964:in `method_missing': undefined method `validates_uri_existence_of' for # (NoMethodError)
        from /home/shiizzl/shiizzle/app/models/story.rb:10
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:158:in `require'
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:265:in `require_or_load'
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:224:in `depend_on'
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:136:in `require_dependency'
        from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:393:in `load_application_classes'
         ... 19 levels...
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
        from /usr/local/bin/mongrel_rails:19:in `load'
        from /usr/local/bin/mongrel_rails:19</description>
		<content:encoded><![CDATA[<p>Hi Ilya,<br />
Thanks for this - it&#8217;s super.<br />
I&#8217;m having a problem.  It works on my local machine, but when i deploy to my server i get the following error.  I have included the validates_uri_existence_of.rb and the edit to the environment.rb.<br />
Your help is greatly appreciated.</p>
<p>Tim</p>
<p>** Starting Mongrel listening at 0.0.0.0:42980-9<br />
** Starting Rails with production environment&#8230;<br />
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/base.rb:1964:in `method_missing&#8217;: undefined method `validates_uri_existence_of&#8217; for # (NoMethodError)<br />
        from /home/shiizzl/shiizzle/app/models/story.rb:10<br />
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require&#8217;<br />
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:158:in `require&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:265:in `require_or_load&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:224:in `depend_on&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:136:in `require_dependency&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:393:in `load_application_classes&#8217;<br />
         &#8230; 19 levels&#8230;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281<br />
        from /usr/local/bin/mongrel_rails:19:in `load&#8217;<br />
        from /usr/local/bin/mongrel_rails:19</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/comment-page-1/#comment-176383</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Thu, 12 Mar 2009 06:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/07/validating-urluri-in-ruby-on-rails/#comment-176383</guid>
		<description>Santosh, extracting urls from a piece of text is a completely different problem. To tackle that, you should probably look at Hpricot wiki for examples of finding all the "a" elements in the DOM, and getting their "href" attributes.</description>
		<content:encoded><![CDATA[<p>Santosh, extracting urls from a piece of text is a completely different problem. To tackle that, you should probably look at Hpricot wiki for examples of finding all the &#8220;a&#8221; elements in the DOM, and getting their &#8220;href&#8221; attributes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santosh</title>
		<link>http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/comment-page-1/#comment-176375</link>
		<dc:creator>santosh</dc:creator>
		<pubDate>Thu, 12 Mar 2009 05:48:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/07/validating-urluri-in-ruby-on-rails/#comment-176375</guid>
		<description>hai ilya Grigorik,

    I am able to run all other my applications and if i remove the regular expression, I am able to run this application also.
How can i proceed further to be able extract url's from a piece of text.

Thank you.</description>
		<content:encoded><![CDATA[<p>hai ilya Grigorik,</p>
<p>    I am able to run all other my applications and if i remove the regular expression, I am able to run this application also.<br />
How can i proceed further to be able extract url&#8217;s from a piece of text.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/comment-page-1/#comment-176365</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Thu, 12 Mar 2009 04:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/07/validating-urluri-in-ruby-on-rails/#comment-176365</guid>
		<description>Santosh, it sounds like you're missing the activerecord/rails gems. Are you running a rails application?</description>
		<content:encoded><![CDATA[<p>Santosh, it sounds like you&#8217;re missing the activerecord/rails gems. Are you running a rails application?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santosh</title>
		<link>http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/comment-page-1/#comment-176237</link>
		<dc:creator>santosh</dc:creator>
		<pubDate>Wed, 11 Mar 2009 15:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/07/validating-urluri-in-ruby-on-rails/#comment-176237</guid>
		<description>I got the following error....when i start the server...what should i do now?
C:\demo&gt;ruby script/server
=&gt; Booting WEBrick...
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:266:in `load_missing_constant': uniniti
alized constant ActiveRecord (NameError)
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing'
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in `const_missing'
        from C:/santosh/clippitdemo/lib/validates_uri_existence_of.rb:6
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
         ... 14 levels...
        from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from script/server:3</description>
		<content:encoded><![CDATA[<p>I got the following error&#8230;.when i start the server&#8230;what should i do now?<br />
C:\demo&gt;ruby script/server<br />
=&gt; Booting WEBrick&#8230;<br />
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:266:in `load_missing_constant&#8217;: uniniti<br />
alized constant ActiveRecord (NameError)<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing&#8217;<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in `const_missing&#8217;<br />
        from C:/santosh/clippitdemo/lib/validates_uri_existence_of.rb:6<br />
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require&#8217;<br />
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require&#8217;<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require&#8217;<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in&#8217;<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require&#8217;<br />
         &#8230; 14 levels&#8230;<br />
        from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39<br />
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require&#8217;<br />
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require&#8217;<br />
        from script/server:3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: almost effortless &#187; Quick and Dirty URL Validation</title>
		<link>http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/comment-page-1/#comment-167975</link>
		<dc:creator>almost effortless &#187; Quick and Dirty URL Validation</dc:creator>
		<pubDate>Tue, 10 Feb 2009 07:22:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/07/validating-urluri-in-ruby-on-rails/#comment-167975</guid>
		<description>[...]   Posted by Trevor in Ruby/Rails on February 09, 2009  I've come across a few different ways to validate URLs in my day, but they all seem a bit more complicated than necessary. Perhaps I'll [...]</description>
		<content:encoded><![CDATA[<p>[...]   Posted by Trevor in Ruby/Rails on February 09, 2009  I&#8217;ve come across a few different ways to validate URLs in my day, but they all seem a bit more complicated than necessary. Perhaps I&#8217;ll [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: New Ruby on Rails plugin: validates_url &#124; adrianx</title>
		<link>http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/comment-page-1/#comment-157608</link>
		<dc:creator>New Ruby on Rails plugin: validates_url &#124; adrianx</dc:creator>
		<pubDate>Mon, 05 Jan 2009 23:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/07/validating-urluri-in-ruby-on-rails/#comment-157608</guid>
		<description>[...] validates_url_format_of, but wanted to write the tests in rspec. For some reason, this led me to Ilya&#8217;s validating url post, which I then combined with Henrik&#8217;s code. Then I converted it to use rspec, and added [...]</description>
		<content:encoded><![CDATA[<p>[...] validates_url_format_of, but wanted to write the tests in rspec. For some reason, this led me to Ilya&#8217;s validating url post, which I then combined with Henrik&#8217;s code. Then I converted it to use rspec, and added [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elokcomputer</title>
		<link>http://www.igvita.com/2006/09/07/validating-url-in-ruby-on-rails/comment-page-1/#comment-149029</link>
		<dc:creator>elokcomputer</dc:creator>
		<pubDate>Tue, 25 Nov 2008 11:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/07/validating-urluri-in-ruby-on-rails/#comment-149029</guid>
		<description>undefined method `validates_uri_existence_of' for Web:Class

???</description>
		<content:encoded><![CDATA[<p>undefined method `validates_uri_existence_of&#8217; for Web:Class</p>
<p>???</p>
]]></content:encoded>
	</item>
</channel>
</rss>
