<?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 on rails</title>
	<atom:link href="http://www.rngtng.com/tag/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rngtng.com</link>
	<description>Featuring Ruby, Rails, Web development, Arduino, Processing, Nabaztag and more...</description>
	<lastBuildDate>Thu, 12 Jan 2012 10:08:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://www.rngtng.com/?pushpress=hub'/>
		<item>
		<title>HowTo: ultra mega fast rails routes lookup</title>
		<link>http://www.rngtng.com/2011/03/16/howto-ultra-mega-fast-rails-routes-lookup/</link>
		<comments>http://www.rngtng.com/2011/03/16/howto-ultra-mega-fast-rails-routes-lookup/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 16:34:00 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[routes]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=538</guid>
		<description><![CDATA[

I was quite annoyed by the wasted time it took each time I grep the rails routes table. 
Wait, can't this be cached?  - Sure it can!
So I came up this nice little alias to cache the output once:

alias route='CF=tmp/routes_cache; ] &#38;&#38; rake routes &#62; $CF; cat $CF &#124; ...]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" src="http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2009/8/5/1249508265579/Frances-V150-TGV-fast-tra-001.jpg" alt="" /></p>
<p>I was quite annoyed by the wasted time it took each time I grep the rails routes table.<br />
<em>Wait, can&#8217;t this be cached?  &#8211; Sure it can!</em><br />
So I came up this nice little alias to cache the output once:<br />
<code><br />
alias route='CF=tmp/routes_cache; [[ ! -s $CF ]] &amp;&amp; rake routes &gt; $CF; cat $CF | grep '<br />
</code></p>
<p>now it&#8217;s ultra fast, try e.g.:<br />
<code><br />
$ route root<br />
</code><br />
bang!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2011/03/16/howto-ultra-mega-fast-rails-routes-lookup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SoundCloud it is&#8230;.</title>
		<link>http://www.rngtng.com/2010/09/02/soundcloud-it-is/</link>
		<comments>http://www.rngtng.com/2010/09/02/soundcloud-it-is/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 16:49:51 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Happy Hacking]]></category>
		<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[berlin]]></category>
		<category><![CDATA[job+]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[soundcloud]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=428</guid>
		<description><![CDATA[

After having enjoyed a wonderful summer with lot of travels and being in more or less 'offline' mode, I'm back 'online' and I started my new Job at soundcloud.com.
It's like Fickr but for Music - upload your tracks and share them among the community and fans.
It's kick ass! ;-) Take a look around the ...]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wechsellook.com/postFiles/489241ba-f3d7-4310-b457-8e7e2041003d.jpg" alt="" width="551" height="252" /></p>
<p>After having enjoyed a wonderful summer with lot of travels and being in more or less &#8216;offline&#8217; mode, I&#8217;m back &#8216;online&#8217; and I started my new Job at <a href="http://www.soundcloud.com">soundcloud.com</a>.</p>
<p style="text-align: center"><em>It&#8217;s like Fickr but for Music &#8211; upload your tracks and share them among the community and fans.</em></p>
<p>It&#8217;s kick ass! <img src='http://www.rngtng.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Take a look around the office, check this out: <a href="http://www.wechsellook.com/post/read/90" target="_blank">http://www.wechsellook.com/post/read/90</a></p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2010/09/02/soundcloud-it-is/feed/</wfw:commentRss>
		<slash:comments>1</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, ...]]></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; title: ; notranslate">
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; title: ; notranslate">
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>
<p class="wp-flattr-button"></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>A short collection of Content Management Systems (CMS) for Ruby on Rails</title>
		<link>http://www.rngtng.com/2008/07/01/a-short-collection-of-content-management-systems-cms-for-ruby-on-rails/</link>
		<comments>http://www.rngtng.com/2008/07/01/a-short-collection-of-content-management-systems-cms-for-ruby-on-rails/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 21:48:31 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[collection]]></category>
		<category><![CDATA[evaluation]]></category>
		<category><![CDATA[Rails & Co.]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=178</guid>
		<description><![CDATA[Here is a short collection of current Content Management Systems (CMS) written in Ruby and mostly suited to use with Ruby on Rails. Check out Ananablau as well for a nice PDF slide.

Comatose (29. June 2007)
Comatose is a micro CMS designed for being embedded into existing Rails applications
http://railsbased.org/projects/8-Comatose.html

Geego
Geego is for developers and designers that ...]]></description>
			<content:encoded><![CDATA[<p>Here is a short collection of current Content Management Systems (CMS) written in Ruby and mostly suited to use with Ruby on Rails. Check out <a href="http://ananasblau.com/ruby-on-rails-cms">Ananablau</a> as well for a nice PDF slide.</p>
<p><strong>Comatose</strong> (29. June 2007)<br />
<em>Comatose is a micro CMS designed for being embedded into existing Rails applications</em></p>
<p><a href="http://railsbased.org/projects/8-Comatose.html" target="_blank">http://railsbased.org/projects/8-Comatose.html</a></p>
<p><strong>Geego</strong><br />
<em>Geego is for developers and designers that want to provide fully updatable websites for their clients.</em></p>
<p><a href="http://www.geegocms.com/" target="_blank">http://www.geegocms.com/</a></p>
<p><strong>Mephisto</strong> (27. July 2006)<br />
<em>Complete Blog System, Mephisto is a publishing system that makes it super easy to setup a blog or website. </em></p>
<p><a href="http://mephistoblog.com/" target="_blank">http://mephistoblog.com/</a></p>
<p><strong>Typo</strong><br />
Complete Blog System, Similar to Mephisto</p>
<p><a href="http://wiki.github.com/fdv/typo/" target="_blank">http://wiki.github.com/fdv/typo/</a></p>
<p><strong>Radiant CMS</strong><br />
<em>Radiant is a no-fluff, open source content management system designed for small teams.</em><br />
Looks cool but no direkt RoR integration? </p>
<p><a href="http://radiantcms.org/" target="_blank">http://radiantcms.org/</a></p>
<p><strong>Railfrog</strong> (3. July 2007)<br />
<em>Railfrog is a user-friendly, open-source website deployment and content management system built with Ruby on Rails.</em><br />
dead project?!</p>
<p><a href="http://railfrog.com/" target="_blank">http://railfrog.com/</a></p>
<p><strong>Rubricks</strong> (31. July 2007)<br />
<em>Rubricks is a component based open source CMS powered by Ruby on Rails.</em></p>
<p><a href="http://rubricks.org/" target="_blank">http://rubricks.org/</a></p>
<p><strong>Seymore</strong> (04/02/2007)<br />
<em>Seymore is an open source content management system which integrates directly into pages.</em></p>
<p><a href="http://www.slicedsoftware.com/software/seymore/" target="_blank">http://www.slicedsoftware.com/software/seymore/</a></p>
<p><strong>SimpleCMS</strong>, (29. December 2007),<br />
<em>small simple, inline edit. Simple CMS is a very easy to use and pretty advanced CMS plugin.</em></p>
<p><a href="http://pullmonkey.com/2007/12/30/simple-cms-plugin-for-rails-demo" target="_blank">http://pullmonkey.com/2007/12/30/simple-cms-plugin-for-rails-demo</a></p>
<p><strong>CMSPlugin</strong><br />
<em>CMSplugin provides your Rails application with a &#8220;CMS framework&#8221;. That means authentication, authorization, roles, permissions, categories, tags, etc but from a very flexible scope.</em></p>
<p><a href="http://cmsplugin.rubyforge.org" target="_blank">http://cmsplugin.rubyforge.org</a></p>
<p><strong>open rcms</strong> (25.6.2007) </p>
<p><a href="http://rcms.oopen.de/Home/" target="_blank">http://rcms.oopen.de/Home/</a></p>
<p><strong>Roxanne</strong><br />
<em>An in-place editor for your entire website. Roxanne is a simple Site-Management Tool to quickly manage your content. See first steps to get the idea behind Roxanne.</em></p>
<p><a href="http://www.m42.ch/projects/roxanne/information.php" target="_blank">http://www.m42.ch/projects/roxanne/information.php</a></p>
<p><strong>Substruct</strong><br />
<em>The first and most robust Ruby on Rails open source e-commerce project.</em></p>
<p><a href="http://code.google.com/p/substruct/" target="_blank">http://code.google.com/p/substruct/</a></p>
<p><strong>Goldberg</strong> (promising)</p>
<p><a href="http://www.goldberg.240gl.org" target="_blank">http://www.goldberg.240gl.org</a></p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2008/07/01/a-short-collection-of-content-management-systems-cms-for-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

