<?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; rails</title>
	<atom:link href="http://www.rngtng.com/tag/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>Rails 3.1 Hackfest &#8211; get rid of Javascript Runtime dependency in production</title>
		<link>http://www.rngtng.com/2011/07/25/rails-3-1-hackfest-get-rid-of-javascript-runtime-dependency-in-production/</link>
		<comments>http://www.rngtng.com/2011/07/25/rails-3-1-hackfest-get-rid-of-javascript-runtime-dependency-in-production/#comments</comments>
		<pubDate>Sun, 24 Jul 2011 22:42:54 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[hackfest]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=584</guid>
		<description><![CDATA[

This weekend was Rails 3.1 Hackfest. The rails community was called to test the upcoming version 3.1 to its limits, to find bugs and or flaws and get it polished for the final release. So I did:
I'm working with the rails 3.1 since it first release candidate, but never tried in production. So I ...]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img class="aligncenter" src="http://pragdave.pragprog.com/photos/uncategorized/2007/05/20/rails_logo_heart.png" alt="" width="480" height="306" /></p>
<p>This weekend was <a href="http://weblog.rubyonrails.org/2011/7/14/rails-3-1-hackfest">Rails 3.1 Hackfest</a>. The rails community was called to test the upcoming version 3.1 to its limits, to find bugs and or flaws and get it polished for the final release. So I did:</p>
<p>I&#8217;m working with the rails 3.1 since it first release candidate, but never tried in production. So I made my task to finally test this, and bring my app in the wild &#8211; on my (not root) server. Rails 3.0 is running there smoothly so I didn&#8217;t expect any problems &#8211; wrong!<br />
Show stopper was the Javascript Runtime dependency on production. Reason was quickly found: <a href="http://jashkenas.github.com/coffee-script/">Coffee-Script</a> &#8211; ahrg! It depends on <a href="https://github.com/sstephenson/execjs">ExecJS</a>, which depends on a Javascript Runtime. Unfortunately, and that&#8217;s because I&#8217;m not on a root server, I got neither node.js, therubyraser, Mustang nor Johnson installed there.</p>
<p>I read <a href="https://moocode.com/posts/1-deploying-a-rails-3-1-application-to-production">this article</a>, which supposed to precompile the assets &#8211; didn&#8217;t help either and runtime is needed again.</p>
<p>In the End, the solution was as simple as obvious: just don&#8217;t use coffee-script in production <img src='http://www.rngtng.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  I did, removed the coffee-script gem form my Gemfile &#8211; and tatatata: it works! Uhh! This took me quite a long time to get it right. Javascript Runtime dependecy no good for prodcution, and reading <a href="http://yehudakatz.com/2011/06/14/what-the-hell-is-happening-to-rails/">Mr. Katz</a> it&#8217;s looking good to get this fixed for the final release &#8211; uff! Happy so get tin final one soon! Yeah!</p>
<p>[cheesey image taken from <a href="http://pragdave.pragprog.com/pragdave/2007/05/rails_is_love.html">PragDave</a> - thx]</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.rngtng.com/?flattrss_redirect&amp;id=584&amp;md5=2173b83f9cc579383a04ddebaabfe99a" title="Flattr" target="_blank"><img src="http://www.rngtng.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2011/07/25/rails-3-1-hackfest-get-rid-of-javascript-runtime-dependency-in-production/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>My Snow Leopard (Development) System: Ruby, Rails, Arduino &amp; Co.</title>
		<link>http://www.rngtng.com/2010/04/27/my-snow-leopard-development-system-ruby-rails-arduino-co/</link>
		<comments>http://www.rngtng.com/2010/04/27/my-snow-leopard-development-system-ruby-rails-arduino-co/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 08:52:03 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Happy Hacking]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Rails & Co.]]></category>
		<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[snowleopard]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=313</guid>
		<description><![CDATA[- updated to Lion - 



Here's a (maybe incomplete) list of my Mac OS X Development system setup. Mainly for me to remember, but maybe a help for you too:


Main Development Setup
Snow Leopard Lion
xCode (or latest iPhone SDK)
Mac Ports, now I prefer Homebrew
Ruby: rvm + rubygems + rails etc.
Database: Mysql 5.1 + Sequel Pro
OpenVPN: ...]]></description>
			<content:encoded><![CDATA[<p><em>- updated to Lion &#8211; </em></p>
<p style="text-align: center"><img src="http://www.rngtng.com/files/2010/04/mac_os_x.jpg" alt="" width="500" height="181" class="aligncenter size-full wp-image-497" /></p>
<p>Here&#8217;s a (maybe incomplete) list of my Mac OS X Development system setup. Mainly for me to remember, but maybe a help for you too:</p>
<p><strong>Main Development Setup</strong><br />
<del datetime="2012-01-09T17:56:37+00:00">Snow Leopard</del> Lion<br />
xCode (or latest iPhone SDK)<br />
Mac Ports, now I prefer <a href="http://mxcl.github.com/homebrew/">Homebrew</a><br />
Ruby: rvm + rubygems + rails etc.<br />
Database: Mysql 5.1 + <a href="http://www.sequelpro.com/">Sequel Pro</a><br />
OpenVPN: Tunnelblick, or  Cisco VPN client + Shimo VPN Menubar Addon<br />
<del datetime="2012-01-09T17:51:01+00:00">Terminal Console Extension: <a href="http://www.culater.net/software/SIMBL/SIMBL.php">SIMBL</a> + <a href="http://visor.binaryage.com/">Visor</a></del> <a href="http://www.iterm2.com/">iTerm 2</a><br />
<a href="http://macromates.com/">TextMate</a> + <a href="http://github.com/jezdez/textmate-missingdrawer">Missing Drawer</a> + Get Bundles + Rails + <a href="http://github.com/protocool/AckMate">AckMate</a> &#8230;<br />
<a href="http://www.jedit.org/">jEdit</a> + FTP + &#8230;<br />
Git + <a href="http://brotherbard.com/blog/2010/09/gitx-update/">GitX (Experimental)</a><br />
FTP &amp; Co: Cyberduck<br />
Hudson status: <a href="http://ccmenu.sourceforge.net/">CCMenu</a><br />
Share Files: <a href="http://www.dropbox.com/referrals/NTEzNjgzMzk">Dropbox</a><br />
<a href="http://www.google.com/chrome">Google Chrome</a><br />
Safari<br />
<a href="http://www.mozilla-europe.org/en/firefox/">Firefox</a> + Firebug</p>
<p><strong>Extended Development</strong><br />
Arduino<br />
Processing<br />
Fritzing<br />
Eclipse</p>
<p><strong>Nice to have:</strong><br />
System Notification: <a href="http://growl.info/">Growl</a> + Growl Mail<br />
<del datetime="2012-01-09T17:51:01+00:00">Read RSS: NetNewsWire</del> Now using RSS within Apple Mail<br />
<del datetime="2012-01-09T17:51:01+00:00">IRC Client: <a href="http://colloquy.info/">Colloquy</a> and <a href="http://clintecker.com/disable-irc-msgs.html">hide join messages</a></del> <a href="http://adium.im/">Adium</a><br />
<a href="http://www.skype.com/">Skype</a> and <del datetime="2012-01-09T17:51:01+00:00"><a href="http://www.atebits.com/tweetie-mac/">Tweetie</a></del> original Twitter client<br />
<del datetime="2012-01-09T17:51:01+00:00">Control iTunes: <a href="http://yellowmug.com/sk4it/">SizzlingKeys</a></del> <a href="http://bowtieapp.com/">Bowtie</a><br />
Spotify and <a href="http://lifeupnorth.co.uk/lun/#5">Spotify Menubar</a> and <a href="http://pansentient.com/2009/05/apple-mac-and-iphone-apps-for-spotify/">more goddies</a><br />
Last.fm: iScrobbler<br />
All Codecs: <a href="http://www.perian.org/">Perian</a><br />
Dasboard widgets:  <a href="http://www.apple.com/downloads/dashboard/networking_security/ipwidget.html">IP</a> + App Update<br />
Copy&amp;Paste History: Flycut<br />
Track Work: MacTimeLog<br />
Word replacement: iWork<br />
Keep your Notes: Journler<br />
Extend Finder: TotalFinder<br />
Mail <a href="http://stl.techinno.nl/archive/">Archiver</a> and <a href="http://www.hawkwings.net/plugins.htm">other</a> <a href="http://tikouka.net/mailapp/">MailPlugins</a></p>
<p><strong>Install hints</strong><br />
<strong>mac ports</strong><br />
<code>sudo port selfupdate<br />
sudo port install git-core +svn +bash_completion<br />
sudo port install ImageMagick +no_x11<br />
sudo port install wget</code></p>
<p><strong>ruby gems</strong></p>
<p><a href="http://stackoverflow.com/questions/991708/rails-mysql-and-snow-leopard" target="_blank">http://stackoverflow.com/questions/991708/rails-mysql-and-snow-leopard</a></p>
<p><code>sudo gem self update<br />
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config<br />
sudo gem install rails<br />
sudo gem install passenger<br />
sudo gem install piston</code></p>
<p><strong>Safari open always in tabs:</strong></p>
<p><a href="http://www.456bereastreet.com/archive/200812/make_safari_open_targeted_links_in_new_tabs_instead_of_new_windows/" target="_blank">http://www.456bereastreet.com/archive/200812/make_safari_open_targeted_links_in_new_tabs_instead_of_new_windows/</a></p>
<p><code>defaults write com.apple.Safari TargetedClicksCreateTabs -bool true </code></p>
<p><strong>Safari enable Development mode:</strong><br />
<code>defaults write com.apple.Safari WebKitDeveloperExtras -bool true<br />
defaults write com.apple.Safari IncludeDebugMenu 1</code></p>
<p><strong>Safari Plugins:</strong></p>
<p><a href="http://alexstaubo.github.com/keywurl/" target="_blank">http://alexstaubo.github.com/keywurl/</a></p>
<p><strong>TextMate install bundle</strong><br />
<code>cd ~/Desktop &amp;&amp; svn co <a href="http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/" target="_blank">http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/</a></code></p>
<p>Well, that&#8217;s it! Stay tuned for updated&#8230;</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.rngtng.com/?flattrss_redirect&amp;id=313&amp;md5=85cc9cc06e596490145534db22a352ab" title="Flattr" target="_blank"><img src="http://www.rngtng.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2010/04/27/my-snow-leopard-development-system-ruby-rails-arduino-co/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My Rails Patch: reload on default scope &#8211; committed!</title>
		<link>http://www.rngtng.com/2010/03/03/my-rails-patch-reload-on-default-scope-committed/</link>
		<comments>http://www.rngtng.com/2010/03/03/my-rails-patch-reload-on-default-scope-committed/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 23:29:00 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Lost in Web]]></category>
		<category><![CDATA[default scope]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=386</guid>
		<description><![CDATA[uiuiui, long time no read, as I'm quite busy lately. Just a quick update, my rails patch - fixing 'reload' on a AR with default scope - got finally committed - nice:

http://github.com/rails/rails/commit/4db72b702f7faca7da30a64e45daeee13733762a]]></description>
			<content:encoded><![CDATA[<p>uiuiui, long time no read, as I&#8217;m quite busy lately. Just a quick update, my rails patch <em>- fixing &#8216;reload&#8217; on a AR with default scope -</em> got finally committed &#8211; nice:</p>
<p><a href="http://github.com/rails/rails/commit/4db72b702f7faca7da30a64e45daeee13733762a" target="_blank">http://github.com/rails/rails/commit/4db72b702f7faca7da30a64e45daeee13733762a</a></p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2010/03/03/my-rails-patch-reload-on-default-scope-committed/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

]]></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>
<p class="wp-flattr-button"></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>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'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's created by and ...]]></description>
			<content:encoded><![CDATA[<p>As you know I&#8217;m quite fond of working with <a href="http://activescaffold.com/" class="broken_link">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" class="broken_link">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>
<p class="wp-flattr-button"></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>
	</channel>
</rss>

