<?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>7deeds &#187; rails</title>
	<atom:link href="http://blog.7deeds.com/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.7deeds.com</link>
	<description>Petros Amiridis - A humble programmer's seven noteworthy actions for the community</description>
	<lastBuildDate>Mon, 31 May 2010 12:09:10 +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>Video on Usability by Adam Dunford and Jason Edwards</title>
		<link>http://blog.7deeds.com/2009/06/18/video-on-usability-by-adam-dunford-and-jason-edwards/</link>
		<comments>http://blog.7deeds.com/2009/06/18/video-on-usability-by-adam-dunford-and-jason-edwards/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 12:14:02 +0000</pubDate>
		<dc:creator>Petros</dc:creator>
				<category><![CDATA[ui]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[videos]]></category>

		<guid isPermaLink="false">http://blog.7deeds.com/?p=252</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><embed src='http://mwrc2009.confreaks.com/player.swf' height='285' width='480' allowscriptaccess='always' allowfullscreen='true' flashvars='file=http%3A%2F%2Fmwrc2009.confreaks.com%2Fvideos%2F14-mar-2009-12-30-improving-the-usability-of-your-ruby-on-rails-applications-adam-dunford-jason-edwards-small.mp4&#038;image=images%2F14-mar-2009-12-30-improving-the-usability-of-your-ruby-on-rails-applications-adam-dunford-jason-edwards-preview.png&#038;plugins=viral-1'/></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.7deeds.com/2009/06/18/video-on-usability-by-adam-dunford-and-jason-edwards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Students can earn $4500 this summer</title>
		<link>http://blog.7deeds.com/2009/03/30/students-can-earn-4500-this-summer/</link>
		<comments>http://blog.7deeds.com/2009/03/30/students-can-earn-4500-this-summer/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 23:29:17 +0000</pubDate>
		<dc:creator>Petros</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blog.7deeds.com/?p=152</guid>
		<description><![CDATA[Are you a student? Are you over 18 years old? Do you want to earn $4500 this summer? Do you love Rails and think you can contribute in core code? Then you should learn all about it at Get Paid to Work on Rails.
]]></description>
			<content:encoded><![CDATA[<p>Are you a student? Are you over 18 years old? Do you want to earn $4500 this summer? Do you love Rails and think you can contribute in core code? Then you should learn all about it at <a href="http://weblog.rubyonrails.org/2009/3/19/get-paid-to-work-on-rails">Get Paid to Work on Rails</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.7deeds.com/2009/03/30/students-can-earn-4500-this-summer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails drop down lists</title>
		<link>http://blog.7deeds.com/2008/11/17/rails-drop-down-lists/</link>
		<comments>http://blog.7deeds.com/2008/11/17/rails-drop-down-lists/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 22:17:51 +0000</pubDate>
		<dc:creator>Petros</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby-on-rails]]></category>

		<guid isPermaLink="false">http://blog.7deeds.com/?p=64</guid>
		<description><![CDATA[Sometimes you want to have a drop down list in your Rails application that contains both the items from a collection of model instances and some other items that are not coming from the collection.

One can combine the results of options_from_collection_for_select and options_for_select to create this. Let&#8217;s say we want to have a form with [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you want to have a drop down list in your Rails application that contains both the items from a collection of model instances and some other items that are not coming from the collection.</p>
<p><span id="more-64"></span></p>
<p>One can combine the results of options_from_collection_for_select and options_for_select to create this. Let&#8217;s say we want to have a form with a drop down list box where we can select a category of products to display. We also want this drop down list to include an option for uncategorized products. The problem is that this option is not a real category.</p>
<p>We can do the following to provide that functionality. First look at the second gist which is the code for the View:</p>
<p><script src="http://gist.github.com/131167.js"></script></p>
<p>If we had three categories, for example Salads, Pizzas, and Drinks, we would get the following list:</p>
<ul>
<li>[Uncategorized]</li>
<li>Salads</li>
<li>Pizzas</li>
<li>Drinks</li>
</ul>
<p>The first option is [Uncategorized] and this comes from calling <em>options_for_select</em>. The rest of the options come from calling <em>options_from_collection_for_select</em>.</p>
<p>Now when that form is submitted, we can examine (see the first gist) what was selected by the user and act accordingly.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.7deeds.com/2008/11/17/rails-drop-down-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails and Greek</title>
		<link>http://blog.7deeds.com/2008/02/17/rails-and-greek/</link>
		<comments>http://blog.7deeds.com/2008/02/17/rails-and-greek/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 15:02:10 +0000</pubDate>
		<dc:creator>Petros</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://blog.7deeds.com/?p=23</guid>
		<description><![CDATA[Rails is great when you want to start quickly and 10 minutes later have your first web application up and running. This is because many things that are needed are pre-configured. This is true but unfortunately if you live in a part of the world where everyone speaks a weird sounding language that has characters [...]]]></description>
			<content:encoded><![CDATA[<p>Rails is great when you want to start quickly and 10 minutes later have your first web application up and running. This is because many things that are needed are pre-configured. This is true but unfortunately if you live in a part of the world where everyone speaks a weird sounding language that has characters that are not standard, you have to use Unicode.</p>
<p>I live in this part of the world where everyone speaks Greek. Somehow we manage to communicate, but that&#8217;s another story.</p>
<p>I want to share with you what I found the hard way. How to setup your Rails application to handle Greek language without any problems:</p>
<p><span id="more-23"></span></p>
<ol>
<li>I use MySQL and set everything up from the database to the table, to use DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci</li>
<li>In your environment.rb file, there is a section #  Include  your  application  configuration  below, where you should put the following two lines:
<ol>
<li>$KCODE  =  &#8216;UTF8&#8242;</li>
<li>require  &#8216;jcode&#8217;</li>
</ol>
</li>
<li>In your database.yml, in your various configurations you add the following line:
<ol>
<li>encoding:  utf8</li>
</ol>
</li>
<li><strong>IMPORTANT</strong>: in order to be able to write Greek characters in your rhtml or rb files you should save them in UTF8. Please be careful to use an editor that allows you to save in UTF8 without using a <a title="Byte Order Mark" href="http://en.wikipedia.org/wiki/Byte_Order_Mark" target="_blank">BOM</a>. If this is not the case, Ruby interpreter will complain and you are going to get strange errors.</li>
</ol>
<p><strong>Disclaimer</strong>: All the tips above were/are essential if you are using Ruby 1.8.6 + Rails 1.2.3. I don&#8217;t know if installing the latest and greatest makes the tips redundant. If anyone knows, please respond with a comment here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.7deeds.com/2008/02/17/rails-and-greek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
