<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>uRaNGaTaNG &#187; Ruby, Rails &amp; Co.</title>
	<atom:link href="http://www.rngtng.com/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rngtng.com</link>
	<description>TobiTobes Tech Weblog featuring Ruby, Rails, Web development, Arduino, Processing, Geekstuff and more...</description>
	<lastBuildDate>Thu, 01 Jul 2010 11:36:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Oauth-CLI &#8211; test your Twitter and other OAuth APIs easily</title>
		<link>http://www.rngtng.com/2010/07/01/oauth-cli-test-your-twitter-and-other-oauth-apis-easily/</link>
		<comments>http://www.rngtng.com/2010/07/01/oauth-cli-test-your-twitter-and-other-oauth-apis-easily/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 11:36:10 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[oauthc]]></category>
		<category><![CDATA[qype]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=418</guid>
		<description><![CDATA[By the time I was working at Qype, I often had to deal with OAuth APIs. Doing example request works to a certain point quite good with a Plugin the for Firefox. But when it comes to Authorized or POST Request you&#8217;re stuck! So I developed a tiny command line client, which allows you to [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.rngtng.com/files/2010/07/oauthc.gif" alt="" width="600" height="432" class="aligncenter size-full wp-image-422" /><br />
By the time I was working at Qype, I often had to deal with OAuth APIs. Doing example request works to a certain point quite good with a Plugin the for Firefox. But when it comes to Authorized or POST Request you&#8217;re stuck!</p>
<p>So I developed a tiny command line client, which allows you to send request easily. It comes as a gem and easily to install:</p>
<p><code>gem install oauth-cli</code></p>
<p>After installation, execute <strong>oauthc</strong>. You either make onetime calls, with giving all required data as parameter, or just go into interactive mode, to get a shell for multiple calls and history. For not stating all connection data over and over again, it comes with multiple profile support, a wizard to create those easily and presets for <strong>Twitter and Qype</strong>.</p>
<p>See this nifty example call:<br />
<code>oauthc -p twitter get statuses/friends.json</code></p>
<p>I hope you like it &#8211; Bug reports, suggestions, updates go to: </p>
<p><a href="http://github.com/rngtng/oauth-cli/issues" target="_blank">http://github.com/rngtng/oauth-cli/issues</a></p>
<p>See Readme:</p>
<p><a href="http://github.com/rngtng/oauth-cli/blob/master/README.rdoc" target="_blank">http://github.com/rngtng/oauth-cli/blob/master/README.rdoc</a></p>
<p>See Source:</p>
<p><a href="http://github.com/rngtng/oauth-cli" target="_blank">http://github.com/rngtng/oauth-cli</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2010/07/01/oauth-cli-test-your-twitter-and-other-oauth-apis-easily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If your ruby serial port doesn&#8217;t read what&#8217; you&#8217;re sending&#8230;</title>
		<link>http://www.rngtng.com/2009/11/27/if-your-ruby-serial-port-doesnt-read-what-youre-sending/</link>
		<comments>http://www.rngtng.com/2009/11/27/if-your-ruby-serial-port-doesnt-read-what-youre-sending/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 16:57:29 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[communication]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[Rails & Co.]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[serialport]]></category>
		<category><![CDATA[uart]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=334</guid>
		<description><![CDATA[Some days ago I got my Novation launchpad an immediately started hacking with some Ruby and Arduino flavor. I wanted to port ccb23 Raindrops Project to launchpad. For that, I needed Serial communication within ruby. Thanks to ruby-serialport first steps went quite well. I could write OR read from and to Arduino easily. But for [...]]]></description>
			<content:encoded><![CDATA[<p>Some days ago I got my <a href="http://twitter.com/rngtng/status/5792203896">Novation</a> <a href="http://www.novationmusic.com/launchpad/">launchpad</a> an immediately started hacking with some <a href="http://github.com/thomasjachmann/launchpad">Ruby</a> and Arduino flavor. I wanted to port ccb23 <a href="http://vimeo.com/6916458">Raindrops Project</a> to launchpad. </p>
<p>For that, I needed Serial communication within ruby. Thanks to <a href="http://ruby-serialport.rubyforge.org/">ruby-serialport</a> first steps went quite well. I could write OR read from and to Arduino easily. But for some reasons, writing AND reading using the same instance didn&#8217;t work out. </p>
<p>I used a simple &#8216;send-input-back&#8217; sketch on the Arduino side. So every byte I&#8217;m sending is returned back. I checked with the Arduino IDE Serialmonitor and a simple Processing script &#8211; everything worked alright.  But using ruby it was different. Writing to serial port worked okay, but reading from it was just random. Sometimes I read the response, sometime I didn&#8217;t &#8211; really, really weird. Some headaches and a lot of time testing I finally found the solution: just open two instances of the serial port. One for sending, one for reading &#8211; and, surprise, surprise &#8211; it works perfect! Who would have guessed that!? Strange.. </p>
<pre class="brush: ruby;">
// To be completed
require 'serialport'
port_write = Serialport.new()
port_read = Serialport.new()
</pre>
<p>Ok, continuing hacking, more soon&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/11/27/if-your-ruby-serial-port-doesnt-read-what-youre-sending/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby: a nice way to get name of current method you&#8217;re in:</title>
		<link>http://www.rngtng.com/2009/11/16/ruby-a-nice-way-to-get-name-of-current-method-youre-in/</link>
		<comments>http://www.rngtng.com/2009/11/16/ruby-a-nice-way-to-get-name-of-current-method-youre-in/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 16:39:52 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[Rails & Co.]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=318</guid>
		<description><![CDATA[This is a nice extension to get the name of the method you&#8217;re currently in (Ruby &#60; 1.9) module Kernel private def this_method caller[0] =~ /`([^']*)'/ and $1 end end for Ruby &#62;= 1.9 you can uses this: module Kernel private def this_method __method__ end end [see Stack Over Flow as well]]]></description>
			<content:encoded><![CDATA[<p>This is a nice extension to get the name of the method you&#8217;re currently in (Ruby &lt; 1.9)</p>
<pre class="brush: ruby;">
module Kernel
   private
   def this_method
     caller[0] =~ /`([^']*)'/ and $1
   end
end
</pre>
<p>for Ruby &gt;= 1.9 you can uses this:</p>
<pre class="brush: ruby;">
module Kernel
   private
   def this_method
     __method__
   end
end
</pre>
<p>[see <a href="http://stackoverflow.com/questions/199527/get-the-name-of-the-currently-executing-method-in-ruby">Stack Over Flow</a> as well]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/11/16/ruby-a-nice-way-to-get-name-of-current-method-youre-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lot&#8217;s of Ruby and Rails Tricks</title>
		<link>http://www.rngtng.com/2009/11/12/lots-of-ruby-and-rails-tricks/</link>
		<comments>http://www.rngtng.com/2009/11/12/lots-of-ruby-and-rails-tricks/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 10:35:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[get started]]></category>
		<category><![CDATA[hint]]></category>
		<category><![CDATA[link tip]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Rails & Co.]]></category>

		<guid isPermaLink="false">http://urangatang.lustauffotos.com/?p=38</guid>
		<description><![CDATA[Quick, short post I always had in the queue: Check this out, here some lists of good techniques to get started and to impove your Ruby and Rails code: http://nettuts.com/articles/web-roundups/10-awesome-ruby-on-rails-techniques-to-get-you-started/ http://www.rubyinside.com/19-rails-tricks-most-rails-coders-dont-know-131.html http://www.rubyinside.com/21-ruby-tricks-902.html [Awsm picture taken from DesignShark]]]></description>
			<content:encoded><![CDATA[<p>Quick, short post I always had in the queue:</p>
<p style="text-align: center"><img class="aligncenter" src="http://www.designshak.com/wp-content/uploads/2009/08/bruce_on_rails.jpg" alt="" /></p>
<p>Check this out, here some lists of good techniques to get started and to impove your Ruby and Rails code:</p>
<p><a href="http://nettuts.com/articles/web-roundups/10-awesome-ruby-on-rails-techniques-to-get-you-started/" target="_blank">http://nettuts.com/articles/web-roundups/10-awesome-ruby-on-rails-techniques-to-get-you-started/</a></p>
<p><a href="http://www.rubyinside.com/19-rails-tricks-most-rails-coders-dont-know-131.html" target="_blank">http://www.rubyinside.com/19-rails-tricks-most-rails-coders-dont-know-131.html</a></p>
<p><a href="http://www.rubyinside.com/21-ruby-tricks-902.html" target="_blank">http://www.rubyinside.com/21-ruby-tricks-902.html</a></p>
<p>[Awsm picture taken from <a href="http://www.designshak.com/blog/ruby-on-rails">DesignShark</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/11/12/lots-of-ruby-and-rails-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails flag_shih_tzu Plugin with named_scope</title>
		<link>http://www.rngtng.com/2009/08/20/rails-flag_shih_tzu-plugin-with-named_scope/</link>
		<comments>http://www.rngtng.com/2009/08/20/rails-flag_shih_tzu-plugin-with-named_scope/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 17:02:36 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[fork]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=200</guid>
		<description><![CDATA[When it comes to store a load of boolean data into your model you easily end up with lots of columns which blow up your table unnecessarily. The developers at Xing solved this problem with a nifty Rails Plugin called flag_shih_tzu. The trick is to store all boolean values combined as a bit vector, which [...]]]></description>
			<content:encoded><![CDATA[<p>When it comes to store a load of boolean data into your model you easily end up with lots of columns which blow up your table unnecessarily. The developers at <a href="http://blog.xing.com/category/tech-blog">Xing</a> solved this problem with a nifty Rails Plugin called <a href="http://github.com/xing/flag_shih_tzu/">flag_shih_tzu</a>. The trick is to store all boolean values combined as a bit vector, which allows you to put up to 32 values (4Byte) within a single Integer column. Automatic generated access methods allows you to deal with you model as your are used to. Wanna see an example? (Taken from plugin docs)</p>
<pre class="brush: ruby;">
class Spaceship &lt; ActiveRecord::Base
  include FlagShihTzu

  has_flags 1 =&gt; :warpdrive,
            2 =&gt; :shields

end

enterprise = Spaceship.new
enterprise.warpdrive = true
enterprise.shields = false
enterprise.save

enterprise.warpdrive? #=&gt; true
enterprise.shields? # =&gt; false
</pre>
<p>Nice, isn&#8217;t it?</p>
<p>Unfortunately named scopes where missing for selecting models easily. So another github fork, another fix, and here were are. Now this works as well:</p>
<pre class="brush: ruby;">
Spaceship.flagged(:warpdrive).not_flagged(:shields).all
</pre>
<p>Check it out here: <a href="http://github.com/rngtng/flag_shih_tzu/tree/master" target="_blank">http://github.com/rngtng/flag_shih_tzu/tree/master</a></p>
<p><strong>Update:</strong> replaced &#8216;routes&#8217; with &#8216;scopes&#8217; &#8211; I&#8217;m getting confused with that all the time, how come!? <img src='http://www.rngtng.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/08/20/rails-flag_shih_tzu-plugin-with-named_scope/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Extending Active Scaffold as_paperclip_bridge to delete &amp; update image/attachment</title>
		<link>http://www.rngtng.com/2009/08/13/extending-active-scaffold-as_paperclip_bridge-to-delete-update-imageattachment/</link>
		<comments>http://www.rngtng.com/2009/08/13/extending-active-scaffold-as_paperclip_bridge-to-delete-update-imageattachment/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 15:53:35 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[active]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[bridge]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[on]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Rails & Co.]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[Scaffold]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=193</guid>
		<description><![CDATA[As you know I&#8217;m quite fond of working with Active Scaffold (AS) for data administration proposes. Quite recently we moved over to the RoR paperclip attachment plugin for file upload handling. I was even more happy to see a Active Scaffold bridge which integrates paperclip smoothly into AS as well. It&#8217;s created by and hosted [...]]]></description>
			<content:encoded><![CDATA[<p>As you know I&#8217;m quite fond of working with <a href="http://activescaffold.com/">Active Scaffold (AS)</a> for data administration proposes. Quite recently we moved over to the RoR <a href="http://www.thoughtbot.com/projects/paperclip">paperclip attachment plugin</a> for file upload handling. I was even more happy to see a Active Scaffold bridge which integrates paperclip smoothly into AS as well. It&#8217;s created by and hosted <a href="http://github.com/mnaglik/as_paperclip_bridge/tree/master">here</a> on github.</p>
<p>Unfortunately it didn&#8217;t provide the possibility to delete or update an image once it&#8217;s assigned to an object. Well no problem, another fork of mine, some coding and now it possible. I basically reused to code of the as_file_column_bridge. Check it out here:<br />
<del datetime="2010-01-11T09:46:08+00:00"><a href="http://github.com/rngtng/as_paperclip_bridge/tree/master" target="_blank">http://github.com/rngtng/as_paperclip_bridge/tree/master</a></del></p>
<p><strong>Update:</strong> changes got merged into trunk, check it out: </p>
<p><a href="http://github.com/mnaglik/as_paperclip_bridge/" target="_blank">http://github.com/mnaglik/as_paperclip_bridge/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/08/13/extending-active-scaffold-as_paperclip_bridge-to-delete-update-imageattachment/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>My first GitHub fork: bounce-email</title>
		<link>http://www.rngtng.com/2009/06/05/my-first-github-fork-bounce-email/</link>
		<comments>http://www.rngtng.com/2009/06/05/my-first-github-fork-bounce-email/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 12:40:12 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[bounce]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[fork]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[Rails & Co.]]></category>
		<category><![CDATA[tmail]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=102</guid>
		<description><![CDATA[Hurray! I finally forked a github project. Yesterday I ran into the bounce-email gem by Agris Ameriks on Rubyforge. It&#8217;s basically a 1:1 port of the PHP Bounce Handler classby Chris Fortune and not very rubyified. Thanks to David Reese, bounce-email is forked on github and I could easily extend it. I rubyfied the class, [...]]]></description>
			<content:encoded><![CDATA[<p>Hurray! I finally forked a github project. Yesterday I ran into the <a href="http://rubyforge.org/projects/bounce-email/">bounce-email gem</a> by Agris Ameriks on Rubyforge. It&#8217;s basically a 1:1 port of the <a href="http://www.phpclasses.org/browse/package/2691.html">PHP Bounce Handler class</a>by Chris Fortune and not very rubyified. Thanks to David Reese, <a href="http://github.com/whatcould/bounce-email/tree/master">bounce-email is forked on github </a> and I could easily extend it.</p>
<p>I rubyfied the class, did some code cleanup, added (yet a very simple) way to get the  original message, and gained some performance by paring message only on demand. A testcase was broken as well the Rakefile, both are fixed. See the update here:<br />
<a href="http://github.com/rngtng/bounce-email/tree/master">http://github.com/rngtng/bounce-email/tree/master</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/06/05/my-first-github-fork-bounce-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby Serialport and Arduino &#8211; that&#8217;s easy!</title>
		<link>http://www.rngtng.com/2009/05/14/ruby-serialport-and-arduino-thats-easy/</link>
		<comments>http://www.rngtng.com/2009/05/14/ruby-serialport-and-arduino-thats-easy/#comments</comments>
		<pubDate>Thu, 14 May 2009 19:59:34 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Arduino & Co.]]></category>
		<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[irb]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[serialport]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=86</guid>
		<description><![CDATA[Yeah, just controlled my Arduino via the ruby irb console using ruby serialport. Damn easy! (well at least on a Mac, running OS 10.5.7) Hehe, soon more to come&#8230; More to get you started with Arduino and Ruby: http://www.arduino.cc/playground/Interfacing/Ruby]]></description>
			<content:encoded><![CDATA[<p>Yeah, just controlled my Arduino via the ruby irb console using <a href="http://rubyforge.org/projects/ruby-serialport">ruby serialport</a>. Damn easy! (well at least on a Mac, running OS 10.5.7) Hehe, soon more to come&#8230;</p>
<p>More to get you started with Arduino and Ruby:<br />
<a href="http://www.arduino.cc/playground/Interfacing/Ruby">http://www.arduino.cc/playground/Interfacing/Ruby</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/05/14/ruby-serialport-and-arduino-thats-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to alias and create a new named scope out of existing ones</title>
		<link>http://www.rngtng.com/2009/03/26/how-to-alias-and-create-a-new-named-scope-out-of-existing-ones/</link>
		<comments>http://www.rngtng.com/2009/03/26/how-to-alias-and-create-a-new-named-scope-out-of-existing-ones/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 14:32:22 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[beauty of code]]></category>
		<category><![CDATA[hint]]></category>
		<category><![CDATA[named]]></category>
		<category><![CDATA[scope]]></category>

		<guid isPermaLink="false">http://urangatang.wordpress.com/?p=8</guid>
		<description><![CDATA[Named scopes in Rails are just awesome. They so much DRY and beautify your code! But did you ever had the trouble to create a new named_scope out of others? E.g. aliasing multiple ones to a new one. Luckily I now figured out how this works in a nice way. The magic key is the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.pathf.com/blogs/2008/06/named-scopes-are-awesome/">Named</a> <a href="http://railscasts.com/episodes/108-named-scope">scopes</a> in Rails are just awesome. They so much DRY and beautify your code! But did you ever had the trouble to create a new named_scope out of others? E.g. aliasing multiple ones to a new one. Luckily I now figured out how this works in a nice way.<br />
The magic key is the method <em><code>scope( :find )</code></em></p>
<p>This method called on a Scope class returns the Hash used for the ActiveRecord <code>.find()</code> call. First it&#8217;s a nice way to debug your scopes, second it&#8217;s perfect for our need to chain multiple scoped into one. Check this out:</p>
<pre class="brush: ruby;">
class Fu &lt; ActiveRecord::Base
named_scope :has_moo,  :conditions =&gt; { :moo =&gt; true }
named_scope :has_foo,  :conditions =&gt; { :foo =&gt; true }

named_scope :has_moo_and_foo, lambda { has_moo.has_foo.scope(:find) }
end
</pre>
<p>We chain the two scoped <code>has_moo</code> and <code>has_foo</code> together into a new one called <code>has_moo_and_foo</code>. As the return value can only be a Hash we use the above mentioned scope(:find) to transform it into one.</p>
<p>Now this works:</p>
<pre class="brush: ruby;">Fu.has_moo_and_foo.all</pre>
<p>Sweet! Imagine how great this would be if we can return a scope object instead of a hash as well??</p>
<p>See my <a href="http://pastie.org/427839">pastie here</a> too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/03/26/how-to-alias-and-create-a-new-named-scope-out-of-existing-ones/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to deal with recurrency in Ruby &amp; Rails</title>
		<link>http://www.rngtng.com/2009/01/21/how-to-deal-with-recurrency-in-ruby-rails/</link>
		<comments>http://www.rngtng.com/2009/01/21/how-to-deal-with-recurrency-in-ruby-rails/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 15:29:49 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[evaluation]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[recurrency]]></category>
		<category><![CDATA[repetition]]></category>
		<category><![CDATA[runt]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=362</guid>
		<description><![CDATA[I did a short eval of projects dealing with re currency in Ruby and Ruby on Rails. Here a short list &#38; rough of interesting projects dealing with repeating time (intervals): Common used lilbrary: http://runt.rubyforge.org A better runt(?): http://github.com/nickstenning/recurring_event Date extension, yahoo dev, rspec like: http://github.com/jhubert/ruby-date-recur http://recurring.rubyforge.org http://github.com/EdvardM/recurrence http://github.com/fnando/recurrence Check this as well: http://stackoverflow.com/questions/85699/whats-the-best-way-to-model-recurring-events-in-a-calendar-application]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img class="aligncenter" src="http://www.time-management-central.net/image-files/time-management-clock.jpg" alt="" width="428" height="283" /></p>
<p>I did a short eval of projects dealing with  re currency in Ruby and Ruby on Rails. Here a short list &amp; rough of interesting projects dealing with repeating time (intervals):</p>
<p><strong>Common used lilbrary:</strong> <a href="http://runt.rubyforge.org" target="_blank">http://runt.rubyforge.org</a><br />
<strong>A better runt(?):</strong> <a href="http://github.com/nickstenning/recurring_event" target="_blank">http://github.com/nickstenning/recurring_event</a><br />
<strong>Date extension, yahoo dev, rspec like:</strong> <a href="http://github.com/jhubert/ruby-date-recur" target="_blank">http://github.com/jhubert/ruby-date-recur</a></p>
<p><a href="http://recurring.rubyforge.org" target="_blank">http://recurring.rubyforge.org</a></p>
<p><a href="http://github.com/EdvardM/recurrence" target="_blank">http://github.com/EdvardM/recurrence</a></p>
<p><a href="http://github.com/fnando/recurrence" target="_blank">http://github.com/fnando/recurrence</a></p>
<p>Check this as well:</p>
<p><a href="http://stackoverflow.com/questions/85699/whats-the-best-way-to-model-recurring-events-in-a-calendar-application" target="_blank">http://stackoverflow.com/questions/85699/whats-the-best-way-to-model-recurring-events-in-a-calendar-application</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/01/21/how-to-deal-with-recurrency-in-ruby-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
