<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>5Valleys Blog</title>
    <link>http://5Valleys.com/tags/#{params[:tag_id]/posts</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Rails, Software Development, Western Montana, and other incoherent ramblings.</description>
    <item>
      <title>RSS Feed URLs to Change</title>
      <description>Anyone subscribed to an RSS feed for this blog should update their feed URLs. The old ones should still be working for now, but it won't be long until I remove support for them and only support the new ones. So, consider yourselves warned. &lt;a href='http://www.5valleys.com/posts/39-RSS-Feed-URLs-to-Change'&gt;continue...&lt;/a&gt;</description>
      <pubDate>Sat, 08 Mar 2008 16:22:00 -0700</pubDate>
      <link>http://www.5valleys.com/posts/39-RSS-Feed-URLs-to-Change</link>
      <author>jsgarvin</author>
      <category>Rails</category>
      <category>REST</category>
      <category>RSS</category>
    </item>
    <item>
      <title>ARID 0.4 Release Party</title>
      <description>ARID has a new home of it's own on RubyForge, and version 0.4 and improved documentation is now available.

ARID (ActiveResourceIntegrationDSL) is a Ruby on Rails plugin providing methods for simple and DRY integration testing of conventions-compliant RESTful Rails applications.

This version contains significant changes to how test methods are formatted and is NOT backwards compatible with tests for
prior versions. &lt;a href='http://www.5valleys.com/posts/25-ARID-0-4-Release-Party'&gt;continue...&lt;/a&gt;</description>
      <pubDate>Sat, 13 Oct 2007 15:04:00 -0600</pubDate>
      <link>http://www.5valleys.com/posts/25-ARID-0-4-Release-Party</link>
      <author>jsgarvin</author>
      <category>Rails</category>
      <category>ARID</category>
      <category>Testing</category>
      <category>REST</category>
    </item>
    <item>
      <title>It Just Works</title>
      <description>When working with Rails full time, it's easy to grow accustomed to the fact that when you do things right, other things &quot;just work&quot; without you doing anything else. &lt;a href='http://www.5valleys.com/posts/16-It-Just-Works'&gt;continue...&lt;/a&gt;</description>
      <pubDate>Tue, 19 Jun 2007 19:45:49 -0600</pubDate>
      <link>http://www.5valleys.com/posts/16-It-Just-Works</link>
      <author>jsgarvin</author>
      <category>Rails</category>
      <category>REST</category>
      <category>ARID</category>
      <category>Testing</category>
    </item>
    <item>
      <title>RESTful Ajax.InPlaceEditor with Rails</title>
      <description>A project at the day job has me implementing some in pace editing. A quick search of the web found this page with a nice helper method that does all the hard work for me.  Problem was, we're using RESTful routes and I was getting errors.  Looking through the comments on the above linked blog post it was obvious I wasn't the only one having problems. Some more research and I think I've got it solved.  Two options need to be added to the :ajax section of the options.

:ajax =&gt; {
  :ajaxOptions =&gt; &quot;{ method: 'put' }&quot;,
  :paramName =&gt; &quot;'my_model[my_field]'&quot;
}

REST expects updates to be sent as a PUT, not a POST, which is what the browser wants to do by default, hence the necessity of the first option.

Next, paramName seems to be an undocumented option that I found only after digging through the Prototype source code. That changes the name of the text field in the form, so that it plays nicely with Rails apps.  Obviousl,y you'll need to change 'my_model[my_field]' to the appropriate model and field names.  Notice the nested double and single quotes... these are IMPORTANT!

With those two options added to the rest, it seems to work like a charm. &lt;a href='http://www.5valleys.com/posts/14-RESTful-Ajax-InPlaceEditor-with-Rails'&gt;continue...&lt;/a&gt;</description>
      <pubDate>Fri, 01 Jun 2007 13:38:56 -0600</pubDate>
      <link>http://www.5valleys.com/posts/14-RESTful-Ajax-InPlaceEditor-with-Rails</link>
      <author>jsgarvin</author>
      <category>REST</category>
      <category>Ajax</category>
      <category>InPlaceEditor</category>
      <category>Rails</category>
    </item>
  </channel>
</rss>
