<?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/"
	>

<channel>
	<title>JeeViDee.nl</title>
	<atom:link href="http://www.jeevidee.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeevidee.nl</link>
	<description></description>
	<pubDate>Sun, 01 Mar 2009 18:21:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Instant rails application? Come and get it!</title>
		<link>http://www.jeevidee.nl/2009/02/22/instant-rails-application-come-and-get-it/</link>
		<comments>http://www.jeevidee.nl/2009/02/22/instant-rails-application-come-and-get-it/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 09:49:07 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.jeevidee.nl/?p=36</guid>
		<description><![CDATA[So you want to have a rails application instantly? Thanks to the new application generator functionality of rails 2.3 and my new plugin this is now possible!
How does it work? First, make sure you have installed the rails 2.3 rc1 gem (available at http://www.rubyonrails.org/) and run the following command:

rails example_shop -m http://www.jeevidee.nl/instant_rails_application.txt

This will install a [...]]]></description>
			<content:encoded><![CDATA[<p>So you want to have a rails application instantly? Thanks to the new application generator functionality of rails 2.3 and my new <a title="dm_generator source" href="http://github.com/jeroenvandijk/dm_generator" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');"><code>plugin</code></a> this is now possible!</p>
<p>How does it work? First, make sure you have installed the rails 2.3 rc1 gem (available at http://www.rubyonrails.org/) and run the following command:<br />
<code><br />
rails example_shop -m http://www.jeevidee.nl/instant_rails_application.txt<br />
</code></p>
<p>This will install a rails application with models, views, controllers, routes, and even translations and fixtures already generated. Plus it will do the migrations and start your server so can you have a look at your new application :).</p>
<p>There is still work to be done, because a good application will not go without tests. The plugin <a title="dm_generator source" href="http://github.com/jeroenvandijk/dm_generator" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');"><code>dm_generator</code></a> is work in progress and I hope I can add this feature soon. Furthermore, the plugin has a low test coverage so bugs are likely to appear. Together with proper documentation this is another TODO item.</p>
<p>If you want to use your own templates, make a fork of <a title="dm_templates source" href="http://github.com/jeroenvandijk/dm_templates" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">dm_templates</a> and change it the way you like it. If you see missing functionality report it here or fork  <a title="dm_generator source" href="http://github.com/jeroenvandijk/dm_generator" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');"><code>dm_generator</code></a> and add it yourself. <a title="dm_generator source" href="http://github.com/jeroenvandijk/dm_generator" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');"></a>If you have a cool design that you want to show? Please add it to the <a title="dm_designs library" href="http://github.com/jeroenvandijk/dm_designs" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');"><code>dm_designs repository</code></a> by forking it and doing a pull request.<a title="dm_designs library" href="http://github.com/jeroenvandijk/dm_designs" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');"></a><a title="dm_generator source" href="http://github.com/jeroenvandijk/dm_generator"><code><br />
</code></a></p>
<p>Here is a summary of features that I would like to see myself:</p>
<ul>
<li>Specs/tests for the generator itself</li>
<li>Good documentation of the generator</li>
<li>Test/Spec and Cucumber templates</li>
<li>Better generation of routes</li>
<li>Configuration of the default files that should be generated outside of dm_generator manifest</li>
</ul>
<p>If you see missing features, please suggest them here in the comments.</p>
<p>Slides of my presentation at <a title="amsterdam.rb homepage" href="http://amsterdam-rb.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/amsterdam-rb.org');">Amsterdam.rb</a> can be found <a href="http://www.jeevidee.nl/Staying-DRY-Rails_Jeroen_van_Dijk.pdf" onclick="javascript:pageTracker._trackPageview('/downloads/Staying-DRY-Rails_Jeroen_van_Dijk.pdf');">here</a> or on <a href="http://www.slideshare.net/jeroenvandijk/staying-dry-rails" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.slideshare.net');">slideshare</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeevidee.nl/2009/02/22/instant-rails-application-come-and-get-it/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using I18n to stay DRY in Rails</title>
		<link>http://www.jeevidee.nl/2009/02/14/using-i18n-to-stay-dry/</link>
		<comments>http://www.jeevidee.nl/2009/02/14/using-i18n-to-stay-dry/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 12:28:45 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<category><![CDATA[i18n]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.jeevidee.nl/?p=12</guid>
		<description><![CDATA[One of the new tools in Rails to stay DRY is the new I18n functionality. With this new tool you can keep away from customizing messages, text in your views etc. for your clients/customers, and instead let them to it themselves! Especially with this great new plugin
Some examples:
In your controller:
flash[:notice] = t("controller.#{current_resource}.#{current_action}",
    [...]]]></description>
			<content:encoded><![CDATA[<p>One of the new tools in Rails to stay <a title="Don't Repeat Yourself (DRY, also known as Single Point of Truth" href="http://en.wikipedia.org/wiki/Don%27t_repeat_yourself" onclick="javascript:pageTracker._trackPageview('/outbound/article/en.wikipedia.org');">DRY</a> is the new <a title="Rails Internationalization" href="http://rails-i18n.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/rails-i18n.org');">I18n</a> functionality. With this new tool you can keep away from customizing messages, text in your views etc. for your clients/customers, and instead let them to it themselves! Especially with this great new <a href="http://developer.newsdesk.se/2009/01/21/translate-new-rails-i18n-plugin-with-a-nice-web-ui/" onclick="javascript:pageTracker._trackPageview('/outbound/article/developer.newsdesk.se');">plugin</a></p>
<p>Some examples:</p>
<p>In your controller:</p>
<pre name="code" class="ruby">flash[:notice] = t("controller.#{current_resource}.#{current_action}",
                           :default =&gt; "controller.default.action")</pre>
<p>If your using something like <a title="Make_resourceful controller abstractor" href="http://github.com/hcatlin/make_resourceful" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">make_resourcefu</a>l this becomes even more apparent. I have forked make_resourceful and implemented this which you can check on <a title="github account -- Jeroen van Dijk" href="http://github.com/jeroenvandijk/" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">my github account</a>.</p>
<p>A similar trick can be done in your views:</p>
<pre name="code" class="ruby">flash[:notice] = t("view.#{current_resource}.#{current_action}",
                          :default =&gt; t("view.default.#{current_action}") )</pre>
<p>The only thing you have to is have a yaml file like this:</p>
<pre name="code" class="yaml">en:
  controller:
    default:
       create:
         "Succesfully created!
       ....</pre>
<p>You can also add the translation of the resource you are working on by adding an option as in the following example:</p>
<pre name="code" class="ruby">flash[:notice] = t("view.#{current_resource}.#{current_action}",
                           :default =&gt; t("view.default.#{current_action}"),
                           :model =&gt; t("activerecord.model.#{model_name}") )</pre>
<p>In your yaml file you will just have to add &#8216;{{model}}&#8217; to include the translation.</p>
<pre name="code" class="yaml">en:
  controller:
    default:
       create:
         "Succesfully created {{model}}!
       ....</pre>
<p>It might turn out that the above idea with this <a title="new I18n feature of scoping translations" href="http://github.com/rails/rails/commit/7527cdf79c640eae5db29a6f3f9b955aa50bc29e" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">new feature in rails</a> will make life even easier! Probably more on that in a future post!</p>
<p>Since this is my first blog post here I would welcome some feedback!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeevidee.nl/2009/02/14/using-i18n-to-stay-dry/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Introduction</title>
		<link>http://www.jeevidee.nl/2009/02/14/introduction/</link>
		<comments>http://www.jeevidee.nl/2009/02/14/introduction/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 11:13:47 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
		
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.jeevidee.nl/?p=3</guid>
		<description><![CDATA[Hello readers,
This blog will be a technical blog with (currently) a focus on Ruby and the Rails framework. I will write about my ideas of how things should be done.
That&#8217;s it for now. More to come!
]]></description>
			<content:encoded><![CDATA[<p>Hello readers,</p>
<p>This blog will be a technical blog with (currently) a focus on <a title="Ruby home page" href="http://www.ruby-lang.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.ruby-lang.org');">Ruby</a> and the <a href="http://www.rubyonrails.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.rubyonrails.org');">Rails framework</a>. I will write about my ideas of how things should be done.</p>
<p>That&#8217;s it for now. More to come!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeevidee.nl/2009/02/14/introduction/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
