<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Ruby on Rails</title>
	<atom:link href="http://www.rubyonrailsexamples.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubyonrailsexamples.com</link>
	<description>Ruby on Rails tutorials</description>
	<pubDate>Wed, 12 Mar 2008 05:33:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>dreamhost promo</title>
		<link>http://www.rubyonrailsexamples.com/cool-sites/dreamhost-promo/</link>
		<comments>http://www.rubyonrailsexamples.com/cool-sites/dreamhost-promo/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 01:22:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[cool sites]]></category>

		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/cool-sites/dreamhost-promo/</guid>
		<description><![CDATA[I came across a decent dreamhost promo.  It gave me 97 dollars discount for the 1 year plan. I paid about 22$ per year for huge space, and huge amount of bandwidth. Dreamhost support ruby on rails, I am not sure about their quality yet as they do not support mongrel. But 22 dollars [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a decent <a href="http://www.dreamhost-promo-code.net/">dreamhost promo</a>.  It gave me 97 dollars discount for the 1 year plan. I paid about 22$ per year for huge space, and huge amount of bandwidth. Dreamhost support ruby on rails, I am not sure about their quality yet as they do not support mongrel. But 22 dollars are good enough for the extra space that I am getting. </p>
<p>You can check this <a href="http://www.adiazar.com/dreamhost-promo/best-dreamhost-promo/">dreamhost promo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubyonrailsexamples.com/cool-sites/dreamhost-promo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Renaming files using ruby!</title>
		<link>http://www.rubyonrailsexamples.com/ruby-files/ruby-files-renaming/</link>
		<comments>http://www.rubyonrailsexamples.com/ruby-files/ruby-files-renaming/#comments</comments>
		<pubDate>Thu, 21 Jun 2007 20:42:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ruby Files]]></category>

		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/ruby-files-renaming/</guid>
		<description><![CDATA[This is a simple program that renames all files inside a directory.Basically, it adds underscore in the beginning of every file.

dir = "C:\\rubywork\\files"

files = Dir.entries(dir)

files.each do &#124;f&#124;
next if f == "." or f == ".."
oldFile = dir + "\\" + f
newFile = dir + "\\_" + f
File.rename(oldFile, newFile)
end





]]></description>
			<content:encoded><![CDATA[<p>This is a simple program that renames all files inside a directory.Basically, it adds underscore in the beginning of every file.</p>
<textarea name="code" class="ruby:nogutter" cols="80" rows="10">
dir = "C:\\rubywork\\files"

files = Dir.entries(dir)

files.each do |f|
next if f == "." or f == ".."
oldFile = dir + "\\" + f
newFile = dir + "\\_" + f
File.rename(oldFile, newFile)
end
</textarea>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8085544530777989";
google_alternate_color = "FFFFFF";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-05-06: rubyonrailsexamples
google_ad_channel = "9149744866";
//-->
</script><br />
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubyonrailsexamples.com/ruby-files/ruby-files-renaming/feed/</wfw:commentRss>
		</item>
		<item>
		<title>RoR DRY</title>
		<link>http://www.rubyonrailsexamples.com/uncategorized/ror-dry/</link>
		<comments>http://www.rubyonrailsexamples.com/uncategorized/ror-dry/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 17:30:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/ror-dry/</guid>
		<description><![CDATA[

]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/H868NSM2yAg"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/H868NSM2yAg" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p></object><!-- adsense --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubyonrailsexamples.com/uncategorized/ror-dry/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ruby on Rails Vs J2EE</title>
		<link>http://www.rubyonrailsexamples.com/ruby-on-rails-videos/ruby-on-rails-vs-j2ee/</link>
		<comments>http://www.rubyonrailsexamples.com/ruby-on-rails-videos/ruby-on-rails-vs-j2ee/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 15:14:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ruby on Rails Videos]]></category>

		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/ruby-on-rails-videos/ruby-on-rails-vs-j2ee/</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[
]]></content:encoded>
			<wfw:commentRss>http://www.rubyonrailsexamples.com/ruby-on-rails-videos/ruby-on-rails-vs-j2ee/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Yellowpages.com goes RoR</title>
		<link>http://www.rubyonrailsexamples.com/sites-on-rails/yellowpagescom-goes-ror/</link>
		<comments>http://www.rubyonrailsexamples.com/sites-on-rails/yellowpagescom-goes-ror/#comments</comments>
		<pubDate>Wed, 23 May 2007 14:46:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Sites On Rails]]></category>

		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/yellowpagescom-goes-ror/</guid>
		<description><![CDATA[This is might be the site with the highest traffic in the web that uses Ruby on Rails. Yellowpages.com lunched a new Beta site totally written in Ruby, both the service and the web application are written in RoR. We worked very hard to get it out, and you can check it here:
http://ngs.yellowpages.com/
Yellowpages.com receives millions [...]]]></description>
			<content:encoded><![CDATA[<p>This is might be the site with the highest traffic in the web that uses Ruby on Rails. Yellowpages.com lunched a new Beta site totally written in Ruby, both the service and the web application are written in RoR. We worked very hard to get it out, and you can check it here:</p>
<p><a href="http://ngs.yellowpages.com/">http://ngs.yellowpages.com/</a></p>
<p>Yellowpages.com receives millions of visits and page views every day. The current yellowpages.com is a J2EE application. The new RoR application will replaces the current one in the end of June.</p>
<p>It is hard to say who is the RoR site with largest traffic, it goes  between twitter and yellowpages.com. I feel comfortable to say that we receives more traffic.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8085544530777989";
google_alternate_color = "FFFFFF";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-05-06: rubyonrailsexamples
google_ad_channel = "9149744866";
//-->
</script><br />
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubyonrailsexamples.com/sites-on-rails/yellowpagescom-goes-ror/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ruby on Rails hosting - I need help</title>
		<link>http://www.rubyonrailsexamples.com/rails-hosting/ruby-on-rail-hosting-i-need-help/</link>
		<comments>http://www.rubyonrailsexamples.com/rails-hosting/ruby-on-rail-hosting-i-need-help/#comments</comments>
		<pubDate>Sun, 20 May 2007 02:12:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Rails Hosting]]></category>

		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/rails-hosting/ruby-on-rail-hosting-i-need-help/</guid>
		<description><![CDATA[
I am currently looking to find good Ruby on Rails hosting. I tried two web hosting plans from two different companies, and I am not convinced. I like to run Mongrel on my server, and I really need high availability.
I found a huge list here, but it is hard to choose the perfect web hosting [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--></p>
<p>I am currently looking to find good Ruby on Rails hosting. I tried two web hosting plans from two different companies, and I am not convinced. I like to run Mongrel on my server, and I really need high availability.</p>
<p>I found a huge list <a href="http://wiki.rubyonrails.org/rails/pages/RailsWebHosts" rel="nofollow">here</a>, but it is hard to choose the perfect web hosting company. Most web site hosting companies are good at Php hosting. I can always find great php hosting, some of these hosting companies runs ruby on rails using light http server or using Fast CGI which seems sucks.</p>
<p>If you have recommendations about good hosting companies, please post a comment.</p>
<p>I appreciate the help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubyonrailsexamples.com/rails-hosting/ruby-on-rail-hosting-i-need-help/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rails Render</title>
		<link>http://www.rubyonrailsexamples.com/rails-tips/rails-render/</link>
		<comments>http://www.rubyonrailsexamples.com/rails-tips/rails-render/#comments</comments>
		<pubDate>Thu, 17 May 2007 18:59:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Rails tips]]></category>

		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/rails-render/</guid>
		<description><![CDATA[Rails Render is a strong method that helps you to render your web pages. It comes with many flavors including:

1) Render action: render an action in the current controller, you can specify if you want layout printed or not

render :action =&#62; "show_home_page", :layout=&#62; false

2) Render partial: renders part of your web page

render :partial =&#62; "footer"

3) [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Rails Render</strong> is a strong method that helps you to <em>render </em>your web pages. It comes with many flavors including:</p>
<p><!--adsense--></p>
<p>1) Render action: render an action in the current controller, you can specify if you want layout printed or not</p>
<textarea name="code" class="ruby:nogutter" cols="80" rows="10">
render :action =&gt; "show_home_page", :layout=&gt; false
</textarea>
<p>2) Render partial: renders part of your web page</p>
<textarea name="code" class="ruby:nogutter" cols="80" rows="10">
render :partial =&gt; "footer"
</textarea>
<p>3) Render template: render a page, the file path is relative to your application</p>
<textarea name="code" class="ruby:nogutter" cols="80" rows="10">
render :template=&gt; "templates"
</textarea>
<p>4) Render file: absolute path is needed</p>
<textarea name="code" class="ruby:nogutter" cols="80" rows="10">
render :file =&gt; "#{RAILS_ROOT}/public/file.html"
</textarea>
<p>5) Render text</p>
<textarea name="code" class="ruby:nogutter" cols="80" rows="10">
render :text =&gt; "This is rails render"
</textarea>
<p>6) Render Json</p>
<textarea name="code" class="ruby:nogutter" cols="80" rows="10">
render :json =&gt; {:name =&gt; "Ruby"}.to_json
</textarea>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubyonrailsexamples.com/rails-tips/rails-render/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rails 301</title>
		<link>http://www.rubyonrailsexamples.com/rails-tips/rails-301/</link>
		<comments>http://www.rubyonrailsexamples.com/rails-tips/rails-301/#comments</comments>
		<pubDate>Thu, 17 May 2007 00:04:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Rails tips]]></category>

		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/rails-301/</guid>
		<description><![CDATA[ This is how we issue 301 in Rails


def rails_301
headers["Status"] = "301 Moved Permanently"
redirect_to "http://www.newdomain.com"
end

]]></description>
			<content:encoded><![CDATA[<p> This is how we issue <strong>301 in Rails</strong></p>
<p><!--adsense--></p>
<textarea name="code" class="ruby:nogutter" cols="80" rows="10">
def rails_301
headers["Status"] = "301 Moved Permanently"
redirect_to "http://www.newdomain.com"
end
</textarea>
]]></content:encoded>
			<wfw:commentRss>http://www.rubyonrailsexamples.com/rails-tips/rails-301/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rails API with the AJAX flavor</title>
		<link>http://www.rubyonrailsexamples.com/rails-tips/rails-api-with-the-ajax-flavor/</link>
		<comments>http://www.rubyonrailsexamples.com/rails-tips/rails-api-with-the-ajax-flavor/#comments</comments>
		<pubDate>Tue, 15 May 2007 16:27:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Rails tips]]></category>

		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/uncategorized/rails-api-with-the-ajax-flavor/</guid>
		<description><![CDATA[Ajax Rails API Here. I really enjoy using this API, you need to type what class, module or method you are looking to and it will get it to you. Then you get the details and enjoy rails development.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.railsbrain.com" rel="nofollow">Ajax Rails API Here</a>. I really enjoy using this API, you need to type what class, module or method you are looking to and it will get it to you. Then you get the details and enjoy rails development.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubyonrailsexamples.com/rails-tips/rails-api-with-the-ajax-flavor/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Scaling twitter</title>
		<link>http://www.rubyonrailsexamples.com/sites-on-rails/scaling-twitter/</link>
		<comments>http://www.rubyonrailsexamples.com/sites-on-rails/scaling-twitter/#comments</comments>
		<pubDate>Mon, 14 May 2007 04:07:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Sites On Rails]]></category>

		<guid isPermaLink="false">http://www.rubyonrailsexamples.com/sites-on-rails/scaling-twitter/</guid>
		<description><![CDATA[These are very interesting slides about scaling twitter:
http://www.slideshare.net/Blaine/scaling-twitter
Enjoy!

]]></description>
			<content:encoded><![CDATA[<p>These are very interesting slides about scaling twitter:</p>
<p>http://www.slideshare.net/Blaine/scaling-twitter</p>
<p>Enjoy!</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubyonrailsexamples.com/sites-on-rails/scaling-twitter/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
