<?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>Rails on the Run &#187; contribution</title>
	<atom:link href="http://railsontherun.com/tag/contribution/feed/" rel="self" type="application/rss+xml" />
	<link>http://railsontherun.com</link>
	<description>Rails experiments by Matt Aimonetti</description>
	<lastBuildDate>Tue, 23 Feb 2010 07:28:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Rails 2.0.2 with few changes</title>
		<link>http://railsontherun.com/2007/12/17/rails-2-0-2-with-few-changes/</link>
		<comments>http://railsontherun.com/2007/12/17/rails-2-0-2-with-few-changes/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 09:52:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[contribution]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[tasks]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/12/17/rails-2-0-2-with-few-changes</guid>
		<description><![CDATA[What&#8217;s new? Rails default database is now sqlite3. If you are running Leopard, everything is already setup for you. As DHH mentioned, just &#8220;rails -d mysql yourappname&#8221; if you want to generate a new app preconfigured for MySQL. Sqlite3 is great and if the only reason why you didn&#8217;t give it a try is because [...]]]></description>
			<content:encoded><![CDATA[<h2>What&#8217;s new?</h2>
<ul>
<li>
<p>Rails default database is now sqlite3. If you are running Leopard, everything is already setup for you. As DHH mentioned, just &#8220;rails -d mysql your<em>app</em>name&#8221; if you want to generate a new app preconfigured for MySQL.<br />
Sqlite3 is great and if the only reason why you didn&#8217;t give it a try is because you have to use CocoaMySQL, then check out <a href="http://sqlitebrowser.sourceforge.net/">sqlitebrowser</a></p>
</li>
<li>
<p>Other new feature: rake secret  to generate a key used to encrypt your session. Really useful task when you&#8217;re migrating an app to 2.x</p>
</li>
<li>
<p>To improve performance, some changes were made to the template caching and you have to restart your production server after a template modification.</p>
</li>
<li>
<p>Validates acceptance of still works for non-existent tables . (sorry <a href="http://blog.hasmanythrough.com/">Josh</a>, I won&#8217;t post after 2am, especially when I forget your life changing bug fix <img src='http://railsontherun.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
</li>
<li>
<p>Added option to pass proc to ActionController::Base.asset_host for maximum configurability. Example:</p>
</li>
</ul>
<table class="CodeRay">
<tr>
<td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }">
<pre>1<tt>
</tt>2<tt>
</tt>3<tt>
</tt>4<tt>
</tt><strong>5</strong><tt>
</tt>6<tt>
</tt>7<tt>
</tt></pre>
</td>
<td class="code">
<pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }">    <span class="co">ActionController</span>::<span class="co">Base</span>.asset_host = <span class="co">Proc</span>.new { |source|<tt>
</tt>      <span class="r">if</span> source.starts_with?(<span class="s"><span class="dl">'</span><span class="k">/images</span><span class="dl">'</span></span>)<tt>
</tt>        <span class="s"><span class="dl">&quot;</span><span class="k">http://images.example.com</span><span class="dl">&quot;</span></span><tt>
</tt>      <span class="r">else</span><tt>
</tt>        <span class="s"><span class="dl">&quot;</span><span class="k">http://assets.example.com</span><span class="dl">&quot;</span></span><tt>
</tt>      <span class="r">end</span><tt>
</tt>    }</pre>
</td>
</tr>
</table>
<ul>
<li>Finally, I added 2 new rake tasks: db:migrate:redo and db:migrate:reset<br/><br />
db:migrate:redo rolls back your database and then migrates it up. You can define the STEP constant to specify the amount of steps you want to rollback. This task is very useful in development mode when making a modification to the latest migration(s).<br />
db:migrate:reset will drop your database, re create it and migrate it up. Only use this task if you really have to and only in development/test environment.  Use db:reset in production mode since it uses the schema.rb file and won&#8217;t go through the hundreds of migrations you might have.</li>
</ul>
<h2>Changeset</h2>
<p><em>2.0.2</em> (December 16th, 2007)</p>
<ul>
<li>
<p>Changed the default database from mysql to sqlite3, so now running &#8220;rails myapp&#8221; will have a config/database.yml that&#8217;s setup for SQLite3 (which in OS X Leopard is installed by default, so is the gem, so everything Just Works with no database configuration at all). To get a Rails application preconfigured for MySQL, just run &#8220;rails -d mysql myapp&#8221; [DHH]</p>
</li>
<li>
<p>Turned on ActionView::Base.cache<em>template</em>loading by default in config/environments/production.rb to prevent file system stat calls for every template loading to see if it changed (this means that you have to restart the application to see template changes in production mode) [DHH]</p>
</li>
<li>
<p>Introduce <code>rake secret</code> to output a crytographically secure secret key for use with cookie sessions #10363 [revans]</p>
</li>
<li>
<p>Fixed that local database creation should consider 127.0.0.1 local #9026 [parcelbrat]</p>
</li>
<li>
<p>Fixed that functional tests generated for scaffolds should use fixture calls instead of hard-coded IDs #10435 [boone]</p>
</li>
<li>
<p>Added db:migrate:redo and db:migrate:reset for rerunning existing migrations #10431, #10432  [matt]</p>
</li>
<li>
<p>RAILS<em>GEM</em>VERSION may be double-quoted also.  #10443 [James Cox]</p>
</li>
<li>
<p>Update rails:freeze:gems to work with RubyGems 0.9.5.  [Jeremy Kemper]</p>
</li>
<li>
<p>Added delete<em>via</em>redirect and put<em>via</em>redirect to integration testing #10497 [philodespotos]</p>
</li>
<li>
<p>Allow headers['Accept'] to be set by hand when calling xml<em>http</em>request #10461 [BMorearty]</p>
</li>
<li>
<p>Added OPTIONS to list of default accepted HTTP methods #10449 [holoway]</p>
</li>
<li>
<p>Added option to pass proc to ActionController::Base.asset_host for maximum configurability #10521 [chuyeow]. Example:</p>
<p>ActionController::Base.asset_host = Proc.new { |source|<br />
  if source.starts_with?(&#8216;/images&#8217;)<br />
    &#8220;http://images.example.com&#8221;<br />
  else<br />
    &#8220;http://assets.example.com&#8221;<br />
  end<br />
}</p>
</li>
<li>
<p>Fixed that ActionView#file<em>exists? would be incorrect if @first</em>render is set #10569 [dbussink]</p>
</li>
<li>
<p>Added that Array#to<em>param calls to</em>param on all it&#8217;s elements #10473 [brandon]</p>
</li>
<li>
<p>Ensure asset cache directories are automatically created.  #10337 [Josh Peek, Cheah Chu Yeow]</p>
</li>
<li>
<p>render <img src='http://railsontherun.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> ml and :json preserve custom content types.  #10388 [jmettraux, Cheah Chu Yeow]</p>
</li>
<li>
<p>Refactor Action View template handlers.  #10437, #10455 [Josh Peek]</p>
</li>
<li>
<p>Fix DoubleRenderError message and leave out mention of returning false from filters.  Closes #10380 [Frederick Cheung]</p>
</li>
<li>
<p>Clean up some cruft around ActionController::Base#head.  Closes #10417 [ssoroka]</p>
</li>
<li>
<p>Ensure optimistic locking handles nil #lock_version values properly.  Closes #10510 [rick]</p>
</li>
<li>
<p>Make the Fixtures Test::Unit enhancements more supporting for double-loaded test cases.  Closes #10379 [brynary]</p>
</li>
<li>
<p>Fix that validates<em>acceptance</em>of still works for non-existent tables (useful for bootstrapping new databases).  Closes #10474 [hasmanyjosh]</p>
</li>
<li>
<p>Ensure that the :uniq option for has_many :through associations retains the order.  #10463 [remvee]</p>
</li>
<li>
<p>Base.exists? doesn&#8217;t rescue exceptions to avoid hiding SQL errors.  #10458 [Michael Klishin]</p>
</li>
<li>
<p>Documentation: Active Record exceptions, destroy<em>all and delete</em>all.  #10444, #10447 [Michael Klishin]</p>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/12/17/rails-2-0-2-with-few-changes/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Hackfest &#8211; June Results</title>
		<link>http://railsontherun.com/2007/07/03/hackfest-june-results/</link>
		<comments>http://railsontherun.com/2007/07/03/hackfest-june-results/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 17:36:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[contest]]></category>
		<category><![CDATA[contribution]]></category>
		<category><![CDATA[hackfest]]></category>
		<category><![CDATA[o\'reilly]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/07/03/hackfest-june-results</guid>
		<description><![CDATA[I received an email today from O&#8217;Reilly UK, letting me know that I won a book of my choosing Don&#8217;t believe that they are just emailing random people to offer them software development books (that would be cool though). O&#8217;Reilly is simply saying thank you for my contribution to the Rails core: If you also [...]]]></description>
			<content:encoded><![CDATA[<p>I received an email today from O&#8217;Reilly UK, letting me know that I won a book of my choosing <img src='http://railsontherun.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Don&#8217;t believe that they are just emailing random people to offer them software development books (that would be cool though). O&#8217;Reilly is simply saying thank you for my contribution to the Rails core:</p>
<p><img src="http://myskitch.com/matt_a/hackfest_-_june_07-20070703-103335.jpg" alt="results"/></p>
<p>If you also want to thank me (for anything you want, really), feel free to send me cheques, books, food, coupons/vouchers, cash, animals under 15 pounds but above 2 or plane tickets.</p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/07/03/hackfest-june-results/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rails hackfest status update</title>
		<link>http://railsontherun.com/2007/06/26/rails-hackfest-status-update/</link>
		<comments>http://railsontherun.com/2007/06/26/rails-hackfest-status-update/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 07:19:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[contest]]></category>
		<category><![CDATA[contribution]]></category>
		<category><![CDATA[hackfest]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/06/26/rails-hackfest-status-update</guid>
		<description><![CDATA[The Rails hackfest is a chance for people to be rewarded for contributing source code to Ruby On Rails. The value of their contributions are accumulated and the results charted. I&#8217;m honored to be listed as contributor number 4 few days before the end of the month. I know I got lucky with some of [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.railsontherun.com/assets/2007/6/26/hackfest-4.png" alt="Hackfest status 4 days before the end of the month"/></p>
<p>The <a href="http://www.workingwithrails.com/hackfest/12-monthly-june-2-7">Rails hackfest</a> is a chance for people to be rewarded for contributing source code to Ruby On Rails. The value of their contributions are accumulated and the results charted.</p>
<p>I&#8217;m honored to be listed as contributor number 4 few days before the end of the month.<br />
I know I got lucky with some of my patches getting merged in and that I might not be able to stay in the top 10, but I&#8217;m still glad I was able to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/06/26/rails-hackfest-status-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hackfest</title>
		<link>http://railsontherun.com/2007/06/22/hackfest/</link>
		<comments>http://railsontherun.com/2007/06/22/hackfest/#comments</comments>
		<pubDate>Fri, 22 Jun 2007 06:21:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[contest]]></category>
		<category><![CDATA[contribution]]></category>
		<category><![CDATA[hackfest]]></category>
		<category><![CDATA[team]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/06/22/hackfest</guid>
		<description><![CDATA[What a pleasant surprise to see that I made it to the top 10 of workingwithrails.com hackfest I know it&#8217;s not fair that my patch got merged in while other people (Josh Knowles for instance) have outstanding patches waiting to be merged in so he could get in front of me Hopefully my other patch [...]]]></description>
			<content:encoded><![CDATA[<p>What a pleasant surprise to see that I made it to the top 10 of <a href="http://www.workingwithrails.com/hackfest/">workingwithrails.com hackfest</a></p>
<p><img src="http://www.railsontherun.com/assets/2007/6/22/hackfest-topmonth_2.png" alt="Hackfest: June top 10"/></p>
<p>I know it&#8217;s not fair that my patch got merged in while other people (<a href="http://joshknowles.com">Josh Knowles</a> for instance) have outstanding patches waiting to be merged in so he could get in front of me <img src='http://railsontherun.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Hopefully my <a href="http://dev.rubyonrails.org/ticket/8701">other patch</a> will be merged in before the end of June and I&#8217;ll be able to stay in the top ten. But for some reason I doubt that would happen and that&#8217;s why I took a screenshot <img src='http://railsontherun.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/06/22/hackfest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

