<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Use a partial form with form_for</title>
	<atom:link href="http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/</link>
	<description>Let us toast your non-idiocy</description>
	<lastBuildDate>Wed, 20 Jul 2011 10:41:56 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: erhard</title>
		<link>http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/comment-page-1/#comment-310</link>
		<dc:creator>erhard</dc:creator>
		<pubDate>Fri, 09 Jan 2009 08:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/10/21/use-a-partial-form-with-form_for/#comment-310</guid>
		<description>Hi playing around with this : Does anybody know how it work from an action ?
I want to make dynamic forms the first field is entered from the user the field is observed : An observe_field calls an action and then depending on rules (a case in the action) different partials (or js.rjs) are called. What is then with the magic local ? Has anybody an idea ?</description>
		<content:encoded><![CDATA[<p>Hi playing around with this : Does anybody know how it work from an action ?<br />
I want to make dynamic forms the first field is entered from the user the field is observed : An observe_field calls an action and then depending on rules (a case in the action) different partials (or js.rjs) are called. What is then with the magic local ? Has anybody an idea ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erhard</title>
		<link>http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/comment-page-1/#comment-309</link>
		<dc:creator>erhard</dc:creator>
		<pubDate>Fri, 09 Jan 2009 07:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/10/21/use-a-partial-form-with-form_for/#comment-309</guid>
		<description>jason&#039;s comment is good.
its not transparent how a partial works in conjunction with a form. OK you transmit the local but its a local how do you get the value back ? The submit is outside the partial. A partial seems to be something like a visual subprogram for html-things But not very transparent for me. As long as you are withing rails its works somehow with a magic. But you have to know the magic (like this)....</description>
		<content:encoded><![CDATA[<p>jason&#8217;s comment is good.<br />
its not transparent how a partial works in conjunction with a form. OK you transmit the local but its a local how do you get the value back ? The submit is outside the partial. A partial seems to be something like a visual subprogram for html-things But not very transparent for me. As long as you are withing rails its works somehow with a magic. But you have to know the magic (like this)&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alastair</title>
		<link>http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/comment-page-1/#comment-306</link>
		<dc:creator>Alastair</dc:creator>
		<pubDate>Wed, 12 Nov 2008 06:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/10/21/use-a-partial-form-with-form_for/#comment-306</guid>
		<description>hey jason, :locals is enabling the partial &#039;form&#039; to have access to the variable &#039;f&#039; which is the form_for the model &#039;product&#039;

so if the model :product has product.name and product.type etc then you can create form elements like

f.text_field :name
f.text_field :type

and they will be bound to the :product model (ie if you are editing a product it&#039;s current values will be set in the text inputs)</description>
		<content:encoded><![CDATA[<p>hey jason, :locals is enabling the partial &#8216;form&#8217; to have access to the variable &#8216;f&#8217; which is the form_for the model &#8216;product&#8217;</p>
<p>so if the model :product has product.name and product.type etc then you can create form elements like</p>
<p>f.text_field :name<br />
f.text_field :type</p>
<p>and they will be bound to the :product model (ie if you are editing a product it&#8217;s current values will be set in the text inputs)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Calleiro</title>
		<link>http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/comment-page-1/#comment-305</link>
		<dc:creator>Jason Calleiro</dc:creator>
		<pubDate>Wed, 12 Nov 2008 00:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/10/21/use-a-partial-form-with-form_for/#comment-305</guid>
		<description>Im completely new at this whole rails business, and while im really enjoying it im not really getting a lot. I see that this works well, but what is the :locals symbol saying?</description>
		<content:encoded><![CDATA[<p>Im completely new at this whole rails business, and while im really enjoying it im not really getting a lot. I see that this works well, but what is the :locals symbol saying?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/comment-page-1/#comment-307</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Mon, 08 Sep 2008 19:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/10/21/use-a-partial-form-with-form_for/#comment-307</guid>
		<description>Awesome, this is a life-saver. Thanks for the post.</description>
		<content:encoded><![CDATA[<p>Awesome, this is a life-saver. Thanks for the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Motte &#187; Blog Archive &#187; How to put a partial form in form_for</title>
		<link>http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/comment-page-1/#comment-308</link>
		<dc:creator>Scott Motte &#187; Blog Archive &#187; How to put a partial form in form_for</dc:creator>
		<pubDate>Thu, 14 Aug 2008 23:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/10/21/use-a-partial-form-with-form_for/#comment-308</guid>
		<description>[...] This was giving me problems. This solved it. [...]</description>
		<content:encoded><![CDATA[<p>[...] This was giving me problems. This solved it. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/comment-page-1/#comment-304</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 26 Mar 2008 01:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/10/21/use-a-partial-form-with-form_for/#comment-304</guid>
		<description>Excellent thanks for this tip I was trying to figure out the same thing!

Jason</description>
		<content:encoded><![CDATA[<p>Excellent thanks for this tip I was trying to figure out the same thing!</p>
<p>Jason</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alastair</title>
		<link>http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/comment-page-1/#comment-302</link>
		<dc:creator>Alastair</dc:creator>
		<pubDate>Thu, 28 Feb 2008 16:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/10/21/use-a-partial-form-with-form_for/#comment-302</guid>
		<description>what about this solution http://www.myersds.com/notebook/2006/09/10/multiple_submit_buttons_on_a_form_with_rails</description>
		<content:encoded><![CDATA[<p>what about this solution <a href="http://www.myersds.com/notebook/2006/09/10/multiple_submit_buttons_on_a_form_with_rails" rel="nofollow">http://www.myersds.com/notebook/2006/09/10/multiple_submit_buttons_on_a_form_with_rails</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: plastik</title>
		<link>http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/comment-page-1/#comment-301</link>
		<dc:creator>plastik</dc:creator>
		<pubDate>Thu, 28 Feb 2008 13:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/10/21/use-a-partial-form-with-form_for/#comment-301</guid>
		<description>I have a simple form, it has a text_field and a text_area. I want to add
2 submit buttons. Each one will do a different action. I was thinking I
could do form_for, and fields_for, but then I thought that fields_for is
used for having two objects, but I only have one. I know I could just
make them images, and links, but I suck at photoshop, and my boss is one
of those people that feels he is a designer, and he tells me that I have
to have some sort of flashing animated gif that is on the right hand
side, and some link that has to be red over on the left side. He also
told me I have to have two buttons, but I don&#039;t know how to do that.</description>
		<content:encoded><![CDATA[<p>I have a simple form, it has a text_field and a text_area. I want to add<br />
2 submit buttons. Each one will do a different action. I was thinking I<br />
could do form_for, and fields_for, but then I thought that fields_for is<br />
used for having two objects, but I only have one. I know I could just<br />
make them images, and links, but I suck at photoshop, and my boss is one<br />
of those people that feels he is a designer, and he tells me that I have<br />
to have some sort of flashing animated gif that is on the right hand<br />
side, and some link that has to be red over on the left side. He also<br />
told me I have to have two buttons, but I don&#8217;t know how to do that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian Janowski</title>
		<link>http://blog.alastairdawson.com/2006/10/21/use-a-partial-form-with-form_for/comment-page-1/#comment-303</link>
		<dc:creator>Damian Janowski</dc:creator>
		<pubDate>Fri, 18 Jan 2008 15:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vixiom.com/2006/10/21/use-a-partial-form-with-form_for/#comment-303</guid>
		<description>We just applied a patch that allows you to do:

 f %&gt;

This will render the _form partial with a local variable called form referencing the FormBuilder.

More info on http://elctech.com/2008/1/16/patching-rails-rendering-form-partials</description>
		<content:encoded><![CDATA[<p>We just applied a patch that allows you to do:</p>
<p> f %&gt;</p>
<p>This will render the _form partial with a local variable called form referencing the FormBuilder.</p>
<p>More info on <a href="http://elctech.com/2008/1/16/patching-rails-rendering-form-partials" rel="nofollow">http://elctech.com/2008/1/16/patching-rails-rendering-form-partials</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

