<?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; update</title>
	<atom:link href="http://railsontherun.com/tag/update/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>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<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 you have [...]]]></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>Attachment_fu updated!</title>
		<link>http://railsontherun.com/2007/11/28/attachment_fu-updated/</link>
		<comments>http://railsontherun.com/2007/11/28/attachment_fu-updated/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 08:26:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[attachment_fu]]></category>
		<category><![CDATA[imagescience]]></category>
		<category><![CDATA[minimagick]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rmagick]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/11/28/attachment_fu-updated</guid>
		<description><![CDATA[I recently bugged Rick Olson so much about attachment_fu that he gave me SVN access to fix few bugs.
Rick being really busy with ActiveReload he didn&#8217;t spend too much time maintaining attachment_fu.
On my side of things, I&#8217;ve been using attachment_fu on a lot of projects and I&#8217;ve been fixing bugs and adding new features.
My first [...]]]></description>
			<content:encoded><![CDATA[<p>I recently bugged <a href="http://techno-weenie.net/">Rick Olson</a> so much about <a href="http://svn.techno-weenie.net/projects/plugins/attachment_fu/">attachment_fu</a> that he gave me SVN access to fix few bugs.</p>
<p>Rick being really busy with <a href="http://activereload.net/">ActiveReload</a> he didn&#8217;t spend too much time maintaining <a href="http://svn.techno-weenie.net/projects/plugins/attachment_fu/">attachment_fu</a>.</p>
<p>On my side of things, I&#8217;ve been using <a href="http://svn.techno-weenie.net/projects/plugins/attachment_fu/">attachment_fu</a> on a lot of projects and I&#8217;ve been fixing bugs and adding new features.</p>
<p>My first contribution to <a href="http://svn.techno-weenie.net/projects/plugins/attachment_fu/">attachment_fu</a> is a fix for the <a href="http://seattlerb.rubyforge.org/ImageScience.html">ImageScience</a> processor.</p>
<p>Attachment_fu is very flexible and let you use your favorite image processor:</p>
<ul>
<li><a href="http://rmagick.rubyforge.org/">RMagick</a> based on <a href="http://www.imagemagick.org/script/mogrify.php">ImageMagick</a> and <a href="http://www.graphicsmagick.org/">GraphicsMagick</a>(known to leak memory and being a pain to setup)</li>
<li><a href="http://rubyforge.org/projects/mini-magick/">minimagick</a> based on <a href="http://www.imagemagick.org/script/mogrify.php">ImageMagick</a></li>
<li><a href="http://seattlerb.rubyforge.org/ImageScience.html">ImageScience</a> based on <a href="http://sf.net/projects/freeimage">FreeImage</a>. </li>
</ul>
<p>Like many rubyists, I like <a href="http://seattlerb.rubyforge.org/ImageScience.html">ImageScience</a> for its simplicity and efficiency. However, <a href="http://svn.techno-weenie.net/projects/plugins/attachment_fu/">attachment_fu</a> had few problems when being used with <a href="http://seattlerb.rubyforge.org/ImageScience.html">ImageScience</a>.</p>
<ul>
<li>File sizes for thumbnails were not saved correctly in the database. Fixed</li>
<li>Thumbnails based on a gif files were not processed properly. So, this was the big problem. <a href="http://sf.net/projects/freeimage">FreeImage</a> has issues dealing with resizing gif files because of the gif palette limitation (256 colors). to avoid this problem thumbnails of gif files are converted to png. However the thumbnail content type info in the database was not saved properly. That&#8217;s now fixed.</li>
<li>Because of the gif bug reported above, any thumbnail link was broken since it was trying to link to the thumbnail version with a gif extension instead of a png one. Fixed</li>
</ul>
<p>I also fixed a small bug related to <a href="http://www.amazon.com/gp/browse.html?node=16427261">S3 storage</a> and the fact that a_fu had issues loading the config file. (Fixed)</p>
<p>I&#8217;ll also try be able to add some of the S3 features I&#8217;ve been working on. As well as maybe enhancing the validation process. </p>
<p>In the mean time, you might want to read <a href="http://the.railsi.st/2007/11/27/roll-your-own-attachment_fu-validations">this blog post</a> about better validation with attachment_fu.</p>
<p>If you are heavily using attachment_fu or starting using it and think that a google group would be great idea, please let me know in the comment and I&#8217;ll try to convince Technoweenie that we need to set that up <img src='http://railsontherun.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ooohh I almost forgot, if you fixed some bugs you found while using a<em>fu, please contact me so we can get a</em>fu bug free.</p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/11/28/attachment_fu-updated/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>New version of Globalite is coming up</title>
		<link>http://railsontherun.com/2007/08/29/new-version-of-globalite-is-coming-up/</link>
		<comments>http://railsontherun.com/2007/08/29/new-version-of-globalite-is-coming-up/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 14:10:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[activeRecord]]></category>
		<category><![CDATA[chinese]]></category>
		<category><![CDATA[globalite]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[translation]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/08/29/new-version-of-globalite-is-coming-up</guid>
		<description><![CDATA[I&#8217;m almost ready to update Globalite with 2 major changes:

Support for Chinese (Taiwan, Hong Kong and main land China) thanks to Ivan Chang
Better support for Active Record error messages in forms (based on contribution from Ivan)

I&#8217;m writing more tests and updating the sample app before releasing the updated version. It should be out in the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m almost ready to update Globalite with 2 major changes:</p>
<ul>
<li>Support for Chinese (Taiwan, Hong Kong and main land China) thanks to Ivan Chang</li>
<li>Better support for Active Record error messages in forms (based on contribution from Ivan)</li>
</ul>
<p>I&#8217;m writing more tests and updating the sample app before releasing the updated version. It should be out in the next few days.</p>
<p>[Globalite page @ Google Code](http://code.google.com/p/globalite/</p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/08/29/new-version-of-globalite-is-coming-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Globalite new built-in language: Italian</title>
		<link>http://railsontherun.com/2007/06/12/globalite-new-built-in-language-italian/</link>
		<comments>http://railsontherun.com/2007/06/12/globalite-new-built-in-language-italian/#comments</comments>
		<pubDate>Tue, 12 Jun 2007 16:10:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[globalite]]></category>
		<category><![CDATA[languages]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[translation]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/06/12/globalite-new-built-in-language-italian</guid>
		<description><![CDATA[Globalite now has built-in support for the following languages:

English (UK)
English (US)
French (France)
Spanish (Generic)
Italian 

I&#8217;m planning on adding support for more languages, but if you want to help me, please email me your language yaml file. Don&#8217;t forget to mention the full locale (language + country) of the translation.
Database content is coming soon&#8230; as soon  [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/globalite/">Globalite</a> now has built-in support for the following languages:</p>
<ul>
<li>English (UK)</li>
<li>English (US)</li>
<li>French (France)</li>
<li>Spanish (Generic)</li>
<li>Italian </li>
</ul>
<p>I&#8217;m planning on adding support for more languages, but if you want to help me, please <a href="mailto:mattaimonetti@gmail.com">email</a> me your language yaml file. Don&#8217;t forget to mention the full locale (language + country) of the translation.</p>
<p>Database content is coming soon&#8230; as soon  as I can find some time to hack on this project.</p>
<p>Just a reminder:</p>
<pre><code>script/plugin install http://globalite.googlecode.com/svn/trunk/
</code></pre>
<p>and rename the trunk folder globalite</p>
<p>or svn checkout in the plugin folder:</p>
<pre><code>svn checkout http://globalite.googlecode.com/svn/trunk/ globalite
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/06/12/globalite-new-built-in-language-italian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

