<?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 &amp; Co.</title>
	<atom:link href="http://www.rngtng.com/tag/rails-co/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>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>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>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 [...]]]></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>
]]></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>
