<?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>spiral_code &#187; bugmash</title>
	<atom:link href="http://blog.trydionel.com/tag/bugmash/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.trydionel.com</link>
	<description></description>
	<lastBuildDate>Fri, 27 Aug 2010 00:35:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rails Bugmash 2010</title>
		<link>http://blog.trydionel.com/2010/01/16/rails-bugmash-2010/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rails-bugmash-2010</link>
		<comments>http://blog.trydionel.com/2010/01/16/rails-bugmash-2010/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 23:47:37 +0000</pubDate>
		<dc:creator>Jeff Tucker</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[bugmash]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blog.trydionel.com/?p=86</guid>
		<description><![CDATA[The Rails Bugmash 2010 is well under way. I&#8217;ve compiled a few notes about what I&#8217;ve seen. will_paginate The current version of the gem (v2.3.12) doesn&#8217;t work, as it relies on the now-removed scope method. It looks like there&#8217;s a &#8230; <a href="http://blog.trydionel.com/2010/01/16/rails-bugmash-2010/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The Rails Bugmash 2010 is well under way.  I&#8217;ve compiled a few notes about what I&#8217;ve seen.</p>
<h2>will_paginate</h2>
<p>The current version of the gem (v2.3.12) doesn&#8217;t work, as it relies on the now-removed <code>scope</code> method.  It looks like there&#8217;s a <a href="http://github.com/packagethief/will_paginate/commit/10e06e6451080d57a4bc914f6d9d3c21c9cffcb9">fork out there which resolves the issue</a>, but it hasn&#8217;t been merged into master yet.</p>
<h2>Formtastic</h2>
<p>The current version of the gem (v0.9.7) seems to work just fine.  All you need is an initializer to set the gem up and load it into rails:</p>
<pre class="brush: ruby;">
require 'formtastic'

# from formtastic's rails/init.rb
ActionView::Base.send :include, Formtastic::SemanticFormHelper
</pre>
<h2>validation_reflection</h2>
<p>You can use validation_reflection (v.0.3.1) with Formtastic by simply requiring it in the initializer:</p>
<pre class="brush: ruby;">
require 'formtastic'

# from formtastic's rails/init.rb
ActionView::Base.send :include, Formtastic::SemanticFormHelper

require 'validation_reflection'
</pre>
<h2>Authlogic</h2>
<p>Not sure about the working state of the gem yet, but the 2.x style generator is clearly not working.  I&#8217;ve forked <a href="http://paulbarry.com/articles/2010/01/13/customizing-generators-in-rails-3">Paul Berry&#8217;s list of Rails 3 generators</a> and <a href="http://github.com/trydionel/rails3-generators">added a simple user session generator.</a><br />
<b>Edit:</b> Actually, the gem doesn&#8217;t work either.  Seems to rely on a <code>before_persisting</code> callback which isn&#8217;t there anymore.</br><br />
<b>Edit II:</b> The <code>before_persisting</code> callback is actually built by Authlogic.  It seems the Authlogic::Session::Base module isn&#8217;t loading callbacks like it should.
</p>
<h2>RSpec</h2>
<p>This is also a no-go in Rails 3.  David Chelimsky, being the always-on-top-of-it developer, is <a href="http://blog.davidchelimsky.net/2010/01/12/rspec-2-and-rails-3/">already planning for RSpec 2.0</a> as a working partner for Rails 3.  No sign of it yet in the github repo though.  If you&#8217;re interesting in playing around anyway, you can find some RSpec generators at the link above.<br />
<h2>Bundler</h2>
<p>The new gem bundler is indeed pretty sexy.  Unfortunately, with all that great work it does, it doesn&#8217;t actually load the gems into your Rails environment.  Neither do any of the config files (boot.rb, application.rb, etc etc).  <a href="http://caffeinedd.com/guides/348-upgrading-to-rails-3">David Trasbo had some luck adding <code>Bundler.require_env</code> to the end of the environment.rb file bundler creates</a>, though he&#8217;s run into load-order troubles.  José Valim recommends placing the line at the end of application.rb to ensure the Rails core is loaded first.  This takes care of loading all the gems, so you can skip the initializers above.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trydionel.com/2010/01/16/rails-bugmash-2010/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
