<?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>Gigu's blog &#187; rails</title>
	<atom:link href="http://blog.gigoo.org/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gigoo.org</link>
	<description>wEBbLOG</description>
	<lastBuildDate>Thu, 01 Jul 2010 22:59:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Types supported by Rails Active Record</title>
		<link>http://blog.gigoo.org/2009/02/16/types-supported-by-rails-active-record/</link>
		<comments>http://blog.gigoo.org/2009/02/16/types-supported-by-rails-active-record/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 13:35:34 +0000</pubDate>
		<dc:creator>Greg Gigon</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[active record]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.gigoo.org/2009/02/16/types-supported-by-rails-active-record/</guid>
		<description><![CDATA[ I’m always looking for those somewhere on web when I need them. Now I’m posting them here so I will always have them handy. If you need them then you can use this as a reference. Below is a list of supported types with its MySQL representation.

:primary_key – int(11) DEFAULT NULL auto_increment PRIMARY KEY
:string [...]]]></description>
			<content:encoded><![CDATA[<p><img style="display: inline; margin: 0px 5px 0px 0px" src="http://blog.gigoo.org/wp-content/uploads/2009/02/image-thumb.png" alt="" align="left" /> I’m always looking for those somewhere on web when I need them. Now I’m posting them here so I will always have them handy. If you need them then you can use this as a reference. Below is a list of supported types with its MySQL representation.</p>
<ul>
<li><strong>:primary_key </strong>– int(11) DEFAULT NULL auto_increment PRIMARY KEY</li>
<li><strong><tt>:string</tt> – </strong>varchar(255)</li>
<li><strong>:text</strong> – text</li>
<li><strong>:integer</strong> – int limit 4</li>
<li><strong>:float – </strong>float</li>
<li><strong>:decimal – </strong>decimal</li>
<li><strong>:datetime</strong> – datetime</li>
<li><strong>:timestamp – </strong>datetime</li>
<li><strong>:time – </strong>time</li>
<li><strong>:date – </strong>date</li>
<li><strong>:binary – </strong>blob</li>
<li><strong>:boolean – </strong>tinyint(1)</li>
</ul>
<p align="left">It can also be found in this constant in <strong>ActiveRecord</strong> <strong>ConnectionAdapters</strong> <strong>MysqlAdapter</strong></p>
<blockquote>
<p align="left">ActiveRecord::ConnectionAdapters::MysqlAdapter.NATIVE_DATABASE_TYPES</p>
</blockquote>
<p align="left">I think that all the other type mappings could be found in appropriate <strong>ActiveRecord</strong> Connection adapters.</p>
<p align="left">Cheers, Gregster</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gigoo.org/2009/02/16/types-supported-by-rails-active-record/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Knights tale of Ruby and Rails</title>
		<link>http://blog.gigoo.org/2008/02/07/knights-tale-of-ruby-and-rails/</link>
		<comments>http://blog.gigoo.org/2008/02/07/knights-tale-of-ruby-and-rails/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 21:40:06 +0000</pubDate>
		<dc:creator>Greg Gigon</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[pragmatic]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.gigoo.org/2008/02/07/knights-tale-of-ruby-and-rails/</guid>
		<description><![CDATA[I should be painting the office (one room in our house that is working as a storage room at the moment), but I can&#8217;t force myself to start. I&#8217;m too lazy to paint but I thought I write about my experience with Ruby and Rails, or in other words, my first steps as a ROR [...]]]></description>
			<content:encoded><![CDATA[<p class="western" style="margin-bottom: 0cm" align="left"><img src="http://blog.gigoo.org/wp-content/uploads/2008/02/greg.jpg" alt="Gigu" style="margin-right:10px" align="left" />I should be painting the office (one room in our house that is working as a storage room at the moment), but I can&#8217;t force myself to start. I&#8217;m too lazy to paint but I thought I write about my experience with <a href="http://www.ruby-lang.org" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.ruby-lang.org');" title="Ruby programming language" target="_blank">Ruby</a> and <a href="http://www.rubyonrails.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.rubyonrails.org');" title="Rubyonrails.org" target="_blank">Rails</a>, or in other words, my first steps as a <a href="http://www.rubyonrails.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.rubyonrails.org');" title="Rubyonrails.org" target="_blank">ROR</a> developer.</p>
<h4>Yada Yada Yada</h4>
<p class="western" style="margin-bottom: 0cm">Let&#8217;s start with Ruby, new programming language for me. So, I don&#8217;t need to compile anything to run, it&#8217;s interpreted. That&#8217;s cool, I used to do a lot of PHP programming some days ago and I liked it a lot. On the other hand, syntax, rules and conventions were weird for me. I did have a conversation with some other developers and they shared my feelings on that subject.</p>
<h4> Yoda Yoda Yoda</h4>
<p class="western" style="margin-bottom: 0cm">I got this strange way of learning new programming language. I just get tools and <a href="http://en.wikipedia.org/wiki/Integrated_development_environment" onclick="javascript:pageTracker._trackPageview('/outbound/article/en.wikipedia.org');" title="Integrated Development Environment" target="_blank">IDE</a> for it, do a little bit of reading and off I go. So, I&#8217;m a Linux user, I&#8217;ve seen a lot of ROR applications development on Macs using <a href="http://macromates.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/macromates.com');" title="TextMate" target="_blank">TextMate</a> or something similar. I started to look for some tool for other platform. Ruby comes bundle with <a href="http://www.scintilla.org/SciTE.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.scintilla.org');" title="Scite text editor" target="_blank">Scite</a>. It&#8217;s great that it has syntax highlighting but nothing more. For me the most important bit is <a href="http://en.wikipedia.org/wiki/IntelliSense" onclick="javascript:pageTracker._trackPageview('/outbound/article/en.wikipedia.org');" title="InteliiSense" target="_blank">InteliiSense</a>.</p>
<p class="western" style="margin-bottom: 0cm">There is no strong typing in Ruby so how any IDE will know what kind of object it&#8217;s dealing with. As a result completion is just a list of ALL methods and properties you can associate with anything. That&#8217;s not really helping. Oh, by the way, refactoring tools boils down to RENAME <img src='http://blog.gigoo.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  On the other hand as soon as you know language it keeps you focus as you need to be careful about what your are typing.</p>
<h4>Trails of Rails</h4>
<p class="western" style="margin-bottom: 0cm">When I finished with all the setup I kinked off some development. I can&#8217;t believe how fast I was able to do things with rails. For a basic web application these framework is just amazing. It comes with generator that creates all single parts of application (model, view, controller, database migration) with skeleton code, inside appropriate folders. I finally selected <a href="http://www.netbeans.org/features/ruby/index.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.netbeans.org');" title="Netbeans for Ruby" target="_blank">Netbeans</a> to be my IDE as it seemed to have most reasonable code completion and integrated all script generation.</p>
<h4>Book da Book</h4>
<p class="western" style="margin-bottom: 0cm">I can&#8217;t use some clever code completion tricks, bottom line: reading books. There are two titles recommended for Ruby and Ruby on Rails by a lot of people (can&#8217;t really name a single person at the moment) in <a href="http://www.pragprog.com/titles" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.pragprog.com');" title="Pragmatic Programmer" target="_blank">Pragmatic Programmers Bookshelf</a>. I can&#8217;t say that any of them give me a good kick start. First chapters are dragging for ages and once finished I had impression that I didn&#8217;t learn anything. Those books are good language/framework reference though with much better content after first chapter.</p>
<h4>Summer (y)</h4>
<p class="western" style="margin-bottom: 0cm">When I started things looked a little bit messy. Strange syntax, no good IDE. After few days of development I started to like it. Language features stopped being annoying and there is more visible results. I will share more experience after few more weeks of development. Stay tuned.</p>
<p class="western" style="margin-bottom: 0cm">Gregster</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gigoo.org/2008/02/07/knights-tale-of-ruby-and-rails/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
