<?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"
	>
<channel>
	<title>Comments for Ruby on Rails</title>
	<atom:link href="http://www.rubyonrailsexamples.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubyonrailsexamples.com</link>
	<description>Ruby on Rails tutorials</description>
	<pubDate>Sat, 10 May 2008 00:23:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>Comment on Email validation using ruby by Randal L Schwartz</title>
		<link>http://www.rubyonrailsexamples.com/ruby-strings/email-validation-using-ruby/#comment-87</link>
		<dc:creator>Randal L Schwartz</dc:creator>
		<pubDate>Sat, 19 Apr 2008 00:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/email-validation-using-ruby/#comment-87</guid>
		<description>As usual, every SINGLE email regex matcher here has FAILED to read RFC822. As with all the other versions, THIS REGEX IS WRONG. DO NOT USE THIS REGEX. DO NOT. AND PLEASE STOP POSTING BROKEN REGEX TO MATCH EMAIL HERE. {sigh}</description>
		<content:encoded><![CDATA[<p>As usual, every SINGLE email regex matcher here has FAILED to read RFC822. As with all the other versions, THIS REGEX IS WRONG. DO NOT USE THIS REGEX. DO NOT. AND PLEASE STOP POSTING BROKEN REGEX TO MATCH EMAIL HERE. {sigh}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Email validation using ruby by Harry</title>
		<link>http://www.rubyonrailsexamples.com/ruby-strings/email-validation-using-ruby/#comment-86</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Wed, 02 Apr 2008 08:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/email-validation-using-ruby/#comment-86</guid>
		<description>%r{^(?:[_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-zA-Z0-9\-\.]+)*(\.[a-z]{2,4})$}i

this is the most appropriate one... with all the validations including the domain extensions...</description>
		<content:encoded><![CDATA[<p>%r{^(?:[_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-zA-Z0-9\-\.]+)*(\.[a-z]{2,4})$}i</p>
<p>this is the most appropriate one&#8230; with all the validations including the domain extensions&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Renaming files using ruby! by Pink Chocobo</title>
		<link>http://www.rubyonrailsexamples.com/ruby-files/ruby-files-renaming/#comment-84</link>
		<dc:creator>Pink Chocobo</dc:creator>
		<pubDate>Mon, 17 Mar 2008 18:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/ruby-files-renaming/#comment-84</guid>
		<description>Here is a variation - it will ask what you want as a prefix (in my case, renaming music files)

#/Users/kriplean/desktop/ruby/renamev2.rb

def rename_files_in_directory(dir, add_this_text)
  files = Dir.entries(dir)
  files.each do &#124;filename&#124;
    next if filename == "." or filename == ".."
    oldFile = dir + "/" + filename
    newFile = dir + "/" + add_this_text + filename
    puts add_this_text + filename
    File.rename(oldFile, newFile)
  end
end

dir = "/Users/myusername/desktop/files"
puts "Type the Artist Name:"
add_this_text = gets.chomp
rename_files_in_directory(dir, add_this_text)</description>
		<content:encoded><![CDATA[<p>Here is a variation - it will ask what you want as a prefix (in my case, renaming music files)</p>
<p>#/Users/kriplean/desktop/ruby/renamev2.rb</p>
<p>def rename_files_in_directory(dir, add_this_text)<br />
  files = Dir.entries(dir)<br />
  files.each do |filename|<br />
    next if filename == &#8220;.&#8221; or filename == &#8220;..&#8221;<br />
    oldFile = dir + &#8220;/&#8221; + filename<br />
    newFile = dir + &#8220;/&#8221; + add_this_text + filename<br />
    puts add_this_text + filename<br />
    File.rename(oldFile, newFile)<br />
  end<br />
end</p>
<p>dir = &#8220;/Users/myusername/desktop/files&#8221;<br />
puts &#8220;Type the Artist Name:&#8221;<br />
add_this_text = gets.chomp<br />
rename_files_in_directory(dir, add_this_text)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Renaming files using ruby! by Pink Chocobo</title>
		<link>http://www.rubyonrailsexamples.com/ruby-files/ruby-files-renaming/#comment-83</link>
		<dc:creator>Pink Chocobo</dc:creator>
		<pubDate>Mon, 17 Mar 2008 18:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/ruby-files-renaming/#comment-83</guid>
		<description>Here is a variation - it will ask what you want as a prefix (in my case, renaming music files)

#/Users/kriplean/desktop/ruby/renamev2.rb

def rename_files_in_directory(dir, add_this_text)
  files = Dir.entries(dir)
  files.each do &#124;filename&#124;
    next if filename == "." or filename == ".."
    oldFile = dir + "/" + filename
    newFile = dir + "/" + add_this_text + filename
    puts add_this_text + filename
    File.rename(oldFile, newFile)
  end
end

dir = "/Users/myusername/desktop/files"
puts "Type the Artist Name:"
add_this_text = gets.chomp
rename_files_in_directory(dir, add_this_text)</description>
		<content:encoded><![CDATA[<p>Here is a variation - it will ask what you want as a prefix (in my case, renaming music files)</p>
<p>#/Users/kriplean/desktop/ruby/renamev2.rb</p>
<p>def rename_files_in_directory(dir, add_this_text)<br />
  files = Dir.entries(dir)<br />
  files.each do |filename|<br />
    next if filename == &#8220;.&#8221; or filename == &#8220;..&#8221;<br />
    oldFile = dir + &#8220;/&#8221; + filename<br />
    newFile = dir + &#8220;/&#8221; + add_this_text + filename<br />
    puts add_this_text + filename<br />
    File.rename(oldFile, newFile)<br />
  end<br />
end</p>
<p>dir = &#8220;/Users/myusername/desktop/files&#8221;<br />
puts &#8220;Type the Artist Name:&#8221;<br />
add_this_text = gets.chomp<br />
rename_files_in_directory(dir, add_this_text)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RoR DRY by Melvin Ram</title>
		<link>http://www.rubyonrailsexamples.com/uncategorized/ror-dry/#comment-82</link>
		<dc:creator>Melvin Ram</dc:creator>
		<pubDate>Fri, 22 Feb 2008 10:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/ror-dry/#comment-82</guid>
		<description>Some people have too much time on their hands =D</description>
		<content:encoded><![CDATA[<p>Some people have too much time on their hands =D</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails Render by Rails Render &#124; Ruby on Rails Türkiye</title>
		<link>http://www.rubyonrailsexamples.com/rails-tips/rails-render/#comment-80</link>
		<dc:creator>Rails Render &#124; Ruby on Rails Türkiye</dc:creator>
		<pubDate>Thu, 07 Feb 2008 14:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/rails-render/#comment-80</guid>
		<description>[...] Kaynak: http://www.rubyonrailsexamples.com/rails-tips/rails-render/   Ekle Sosyal link paylasim sitelerindeki hesabiniza ekleyip, daha sonra kolaylikla bu yaziyi [...]</description>
		<content:encoded><![CDATA[<p>[...] Kaynak: <a href="http://www.rubyonrailsexamples.com/rails-tips/rails-render/" rel="nofollow">http://www.rubyonrailsexamples.com/rails-tips/rails-render/</a>   Ekle Sosyal link paylasim sitelerindeki hesabiniza ekleyip, daha sonra kolaylikla bu yaziyi [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby hash merge (Add element to Ruby hash) by Andrei</title>
		<link>http://www.rubyonrailsexamples.com/ruby-hash/ruby-hash-merge/#comment-79</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Thu, 03 Jan 2008 15:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/ruby-hash-merge/#comment-79</guid>
		<description>users_hash[key] = value

Why not this method?</description>
		<content:encoded><![CDATA[<p>users_hash[key] = value</p>
<p>Why not this method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby hash merge (Add element to Ruby hash) by Hamza Khan-Cheema</title>
		<link>http://www.rubyonrailsexamples.com/ruby-hash/ruby-hash-merge/#comment-78</link>
		<dc:creator>Hamza Khan-Cheema</dc:creator>
		<pubDate>Wed, 02 Jan 2008 08:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/ruby-hash-merge/#comment-78</guid>
		<description>Hi,

Thanks, for this,

You may also want to mention that if there is a duplicate key in the new hash, it will overwrite  the original hash. 

So if I did this on the original hash:

users_hash.merge("tom" =&#62; "changed_password")

It would change the original hash , thus changing tom's password to be 'changed_password'.

Hamza</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks, for this,</p>
<p>You may also want to mention that if there is a duplicate key in the new hash, it will overwrite  the original hash. </p>
<p>So if I did this on the original hash:</p>
<p>users_hash.merge(&#8221;tom&#8221; =&gt; &#8220;changed_password&#8221;)</p>
<p>It would change the original hash , thus changing tom&#8217;s password to be &#8216;changed_password&#8217;.</p>
<p>Hamza</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby on Rails hosting - I need help by tasaro</title>
		<link>http://www.rubyonrailsexamples.com/rails-hosting/ruby-on-rail-hosting-i-need-help/#comment-77</link>
		<dc:creator>tasaro</dc:creator>
		<pubDate>Thu, 27 Dec 2007 15:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/rails-hosting/ruby-on-rail-hosting-i-need-help/#comment-77</guid>
		<description>Linode virtual servers: http://www.linode.com/

The Linode Manager is extremely powerful, every major distro is supported, multiple IPs, IP failover between multiple Linodes, console access, three data centers to choose from.  They also sponsored the Rails Rumble - http://railsrumble.com/</description>
		<content:encoded><![CDATA[<p>Linode virtual servers: <a href="http://www.linode.com/" rel="nofollow">http://www.linode.com/</a></p>
<p>The Linode Manager is extremely powerful, every major distro is supported, multiple IPs, IP failover between multiple Linodes, console access, three data centers to choose from.  They also sponsored the Rails Rumble - <a href="http://railsrumble.com/" rel="nofollow">http://railsrumble.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rails Render by adam</title>
		<link>http://www.rubyonrailsexamples.com/rails-tips/rails-render/#comment-76</link>
		<dc:creator>adam</dc:creator>
		<pubDate>Tue, 25 Dec 2007 13:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/rails-render/#comment-76</guid>
		<description>you can just do:

render :controller =&#62; 'controller_name', :action =&#62; 'action_name'


should do the trick!</description>
		<content:encoded><![CDATA[<p>you can just do:</p>
<p>render :controller =&gt; &#8216;controller_name&#8217;, :action =&gt; &#8216;action_name&#8217;</p>
<p>should do the trick!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
