<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Taking the Pain Out of Complex Forms in Rails</title>
	<atom:link href="http://www.vector-seven.com/2008/07/20/taking-the-pain-out-of-complex-forms-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deskchecked.com/2008/07/20/taking-the-pain-out-of-complex-forms-in-rails/</link>
	<description>Tom Lee's programming blog</description>
	<pubDate>Fri, 21 Nov 2008 21:49:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Eric</title>
		<link>http://www.deskchecked.com/2008/07/20/taking-the-pain-out-of-complex-forms-in-rails/#comment-1456</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 11 Aug 2008 23:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.vector-seven.com/?p=77#comment-1456</guid>
		<description>Yep, was able to get it. Works great, too! Thanks</description>
		<content:encoded><![CDATA[<p>Yep, was able to get it. Works great, too! Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Lee &#187; Fixing Rails Nested Forms (or: HashWithIndifferentAccess is evil)</title>
		<link>http://www.deskchecked.com/2008/07/20/taking-the-pain-out-of-complex-forms-in-rails/#comment-1450</link>
		<dc:creator>Thomas Lee &#187; Fixing Rails Nested Forms (or: HashWithIndifferentAccess is evil)</dc:creator>
		<pubDate>Sun, 10 Aug 2008 05:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.vector-seven.com/?p=77#comment-1450</guid>
		<description>[...] UPDATE Since I wrote this post, I&#8217;ve written a plugin that replaces Rails&#8217; parameter parsing implementation to make dealing with complex nested forms easier still. Refer to Taking the Pain Out of Complex Forms in Rails. [...]</description>
		<content:encoded><![CDATA[<p>[...] UPDATE Since I wrote this post, I&#8217;ve written a plugin that replaces Rails&#8217; parameter parsing implementation to make dealing with complex nested forms easier still. Refer to Taking the Pain Out of Complex Forms in Rails. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://www.deskchecked.com/2008/07/20/taking-the-pain-out-of-complex-forms-in-rails/#comment-1449</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Sun, 10 Aug 2008 05:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.vector-seven.com/?p=77#comment-1449</guid>
		<description>Eric: is it any better now? Migrated from lighttpd to Apache and I screwed up the configuration.

Ivan: Glad you found it useful. :) It's been a thorn in my side a few times in the past.</description>
		<content:encoded><![CDATA[<p>Eric: is it any better now? Migrated from lighttpd to Apache and I screwed up the configuration.</p>
<p>Ivan: Glad you found it useful. <img src='http://www.deskchecked.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> It&#8217;s been a thorn in my side a few times in the past.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://www.deskchecked.com/2008/07/20/taking-the-pain-out-of-complex-forms-in-rails/#comment-1445</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Sat, 09 Aug 2008 03:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.vector-seven.com/?p=77#comment-1445</guid>
		<description>I've been looking for a fix to this problem for months, and attempted writing my own hacked UrlEncodedPairParser with little success. I've tested this plugin in my application and it seems to work perfectly, even with multilevel nested arrays by adding an index option to the block params of the form helper.

Might need some hacking to work with Javascript added elements such as in Ryan's complex forms recipe.
 
I would love to see this functionality in Rails 2.2</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been looking for a fix to this problem for months, and attempted writing my own hacked UrlEncodedPairParser with little success. I&#8217;ve tested this plugin in my application and it seems to work perfectly, even with multilevel nested arrays by adding an index option to the block params of the form helper.</p>
<p>Might need some hacking to work with Javascript added elements such as in Ryan&#8217;s complex forms recipe.</p>
<p>I would love to see this functionality in Rails 2.2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.deskchecked.com/2008/07/20/taking-the-pain-out-of-complex-forms-in-rails/#comment-1443</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Tue, 05 Aug 2008 18:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.vector-seven.com/?p=77#comment-1443</guid>
		<description>I'm having trouble cloning the plug-in with git, and when I click the link to the repo, I receive a 403 error. Any suggestions?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having trouble cloning the plug-in with git, and when I click the link to the repo, I receive a 403 error. Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://www.deskchecked.com/2008/07/20/taking-the-pain-out-of-complex-forms-in-rails/#comment-1387</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Mon, 21 Jul 2008 12:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.vector-seven.com/?p=77#comment-1387</guid>
		<description>Yep, Koz pointed this out on the mailing list. And yes, it's dealing with part of the same problem. But the parsing itself is the big thing here:

&lt;pre&gt;&lt;code&gt;
ryan = User.create( {
  :login =&gt; 'ryan',
  :phone_numbers =&gt; [
    { :area_code =&gt; '919', :number =&gt; '123-4567' },
    { :area_code =&gt; '920', :number =&gt; '123-8901' }
  ]
})
&lt;/code&gt;&lt;/pre&gt;

Try building a form to generate :phone_numbers using edge. It's not a matter of just using "user[phone_numbers][]" or "user[phone_numbers][0]". The former won't work because a "PhoneNumber" has two fields. The latter, because it builds a Hash instead of an Array. The existing form parsing code will limit the usefulness of this new capability.</description>
		<content:encoded><![CDATA[<p>Yep, Koz pointed this out on the mailing list. And yes, it&#8217;s dealing with part of the same problem. But the parsing itself is the big thing here:</p>
<pre><code>
ryan = User.create( {
  :login => 'ryan',
  :phone_numbers => [
    { :area_code => '919', :number => '123-4567' },
    { :area_code => '920', :number => '123-8901' }
  ]
})
</code></pre>
<p>Try building a form to generate :phone_numbers using edge. It&#8217;s not a matter of just using &#8220;user[phone_numbers][]&#8221; or &#8220;user[phone_numbers][0]&#8220;. The former won&#8217;t work because a &#8220;PhoneNumber&#8221; has two fields. The latter, because it builds a Hash instead of an Array. The existing form parsing code will limit the usefulness of this new capability.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evgeny</title>
		<link>http://www.deskchecked.com/2008/07/20/taking-the-pain-out-of-complex-forms-in-rails/#comment-1386</link>
		<dc:creator>Evgeny</dc:creator>
		<pubDate>Mon, 21 Jul 2008 09:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.vector-seven.com/?p=77#comment-1386</guid>
		<description>So this new rails edge feature helps you?
http://ryandaigle.com/articles/2008/7/19/what-s-new-in-edge-rails-nested-models</description>
		<content:encoded><![CDATA[<p>So this new rails edge feature helps you?<br />
<a href="http://ryandaigle.com/articles/2008/7/19/what-s-new-in-edge-rails-nested-models" rel="nofollow">http://ryandaigle.com/articles/2008/7/19/what-s-new-in-edge-rails-nested-models</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
