<?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: RoR: link_to_remote with a text_field value as an argument</title>
	<atom:link href="http://ariejan.net/2007/02/21/ror-link_to_remote-with-a-text_field-value-as-an-argument/feed/" rel="self" type="application/rss+xml" />
	<link>http://ariejan.net/2007/02/21/ror-link_to_remote-with-a-text_field-value-as-an-argument/</link>
	<description>May The Source Be With You.</description>
	<pubDate>Tue, 06 Jan 2009 13:22:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Soleone</title>
		<link>http://ariejan.net/2007/02/21/ror-link_to_remote-with-a-text_field-value-as-an-argument/comment-page-1/#comment-10586</link>
		<dc:creator>Soleone</dc:creator>
		<pubDate>Thu, 14 Aug 2008 19:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://beta.ariejan.net/?p=83#comment-10586</guid>
		<description>@Personal Trainer:

If you're using it in the controller, I would say Yes. But for very simple stuff, that's maybe not an issue.

I tend to put all the RJS code in a View template (e.g. "action.js.rjs") that gets rendered by the Controller.</description>
		<content:encoded><![CDATA[<p>@Personal Trainer:</p>
<p>If you&#8217;re using it in the controller, I would say Yes. But for very simple stuff, that&#8217;s maybe not an issue.</p>
<p>I tend to put all the RJS code in a View template (e.g. &#8220;action.js.rjs&#8221;) that gets rendered by the Controller.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Personal Trainer</title>
		<link>http://ariejan.net/2007/02/21/ror-link_to_remote-with-a-text_field-value-as-an-argument/comment-page-1/#comment-10579</link>
		<dc:creator>Personal Trainer</dc:creator>
		<pubDate>Wed, 06 Aug 2008 06:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://beta.ariejan.net/?p=83#comment-10579</guid>
		<description>Does using RJS in the controller break the principles behind MVC?</description>
		<content:encoded><![CDATA[<p>Does using RJS in the controller break the principles behind MVC?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phu V. Nguyen</title>
		<link>http://ariejan.net/2007/02/21/ror-link_to_remote-with-a-text_field-value-as-an-argument/comment-page-1/#comment-201</link>
		<dc:creator>Phu V. Nguyen</dc:creator>
		<pubDate>Mon, 17 Sep 2007 16:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://beta.ariejan.net/?p=83#comment-201</guid>
		<description>I think you have some error in typing :D, so I rewrite it:
link_to_remote "Check address",
   :url =&#62; {
      :controller =&#62; 'locations',
      :action =&#62; 'check_address',
      :address =&#62; @location.address
   },
   :with =&#62; "'address='+encodeURIComponent($F(’spot_address’))",
   :method =&#62; :get

Cheer.</description>
		<content:encoded><![CDATA[<p>I think you have some error in typing :D, so I rewrite it:<br />
link_to_remote &#8220;Check address&#8221;,<br />
   :url =&gt; {<br />
      :controller =&gt; &#8216;locations&#8217;,<br />
      :action =&gt; &#8216;check_address&#8217;,<br />
      :address =&gt; @location.address<br />
   },<br />
   :with =&gt; &#8220;&#8216;address=&#8217;+encodeURIComponent($F(’spot_address’))&#8221;,<br />
   :method =&gt; :get</p>
<p>Cheer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sathishkumar</title>
		<link>http://ariejan.net/2007/02/21/ror-link_to_remote-with-a-text_field-value-as-an-argument/comment-page-1/#comment-199</link>
		<dc:creator>sathishkumar</dc:creator>
		<pubDate>Thu, 29 Mar 2007 06:30:32 +0000</pubDate>
		<guid isPermaLink="false">http://beta.ariejan.net/?p=83#comment-199</guid>
		<description>thanks for comment
its very usefull</description>
		<content:encoded><![CDATA[<p>thanks for comment<br />
its very usefull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ariejan</title>
		<link>http://ariejan.net/2007/02/21/ror-link_to_remote-with-a-text_field-value-as-an-argument/comment-page-1/#comment-198</link>
		<dc:creator>Ariejan</dc:creator>
		<pubDate>Tue, 27 Mar 2007 19:46:36 +0000</pubDate>
		<guid isPermaLink="false">http://beta.ariejan.net/?p=83#comment-198</guid>
		<description>@Blake: you're right about that. The article has been updated. Thanks for the comment!</description>
		<content:encoded><![CDATA[<p>@Blake: you&#8217;re right about that. The article has been updated. Thanks for the comment!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake Ramsdell</title>
		<link>http://ariejan.net/2007/02/21/ror-link_to_remote-with-a-text_field-value-as-an-argument/comment-page-1/#comment-197</link>
		<dc:creator>Blake Ramsdell</dc:creator>
		<pubDate>Tue, 27 Mar 2007 19:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://beta.ariejan.net/?p=83#comment-197</guid>
		<description>This was incredibly helpful, thank you for the insight and thank you for taking the time to publish this. I will suggest that you make one change to your example.

Change:

$F('spot_address')

To:

encodeURIComponent($F('spot_address'))

If spot_address has any "funny" characters in it, it will break parsing. I had a different application where ampersands might be in the edit control, and it barfed out until I encoded them.</description>
		<content:encoded><![CDATA[<p>This was incredibly helpful, thank you for the insight and thank you for taking the time to publish this. I will suggest that you make one change to your example.</p>
<p>Change:</p>
<p>$F(&#8217;spot_address&#8217;)</p>
<p>To:</p>
<p>encodeURIComponent($F(&#8217;spot_address&#8217;))</p>
<p>If spot_address has any &#8220;funny&#8221; characters in it, it will break parsing. I had a different application where ampersands might be in the edit control, and it barfed out until I encoded them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rushabh</title>
		<link>http://ariejan.net/2007/02/21/ror-link_to_remote-with-a-text_field-value-as-an-argument/comment-page-1/#comment-200</link>
		<dc:creator>Rushabh</dc:creator>
		<pubDate>Sat, 24 Mar 2007 20:02:44 +0000</pubDate>
		<guid isPermaLink="false">http://beta.ariejan.net/?p=83#comment-200</guid>
		<description>I was looking for a way to pass some parameters to &lt;a href='http://blog.craigambrose.com/articles/2006/09/22/
redbox-release-2'&gt;Redbox&lt;/a&gt;

Thank You!!</description>
		<content:encoded><![CDATA[<p>I was looking for a way to pass some parameters to <a href='http://blog.craigambrose.com/articles/2006/09/22/<br />
redbox-release-2'>Redbox</a></p>
<p>Thank You!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
