The ActiveResource find method just got a little bit of tightening with a new :find option. This option basically replaces the ability to call a custom method with a single argument to find and makes find a little less open-ended.
For instance, if before you were invoking a recent custom method:
Post.find(:recent) #=> GET /people/recent.xml
you will now need to declare the multiplicity or scope (:all in this case) as the first argument and the custom method as the :from option:
Post.find(:all, :from => :recent) #=> GET /posts/recent.xml
You can also do the same for singleton resources with the :one scope:
Post.find(:one, :from => :latest) #=> GET /post/latest.xml
And if you just want to manually specify the location from which to get the post, you can use the actual string URI:
Post.find(:one, :from => "/categories/1/latest.xml") #=> GET /categories/1/latest.xml
So basically what’s happened is that the first argument to find has been tightened to allow either the resource id or the scope (:all, :first, :one) and any custom method or manual resource location has been moved to the :from option.
ActiveResource Custom Headers
ActiveResource was also recently updated to include the ability to set custom headers per resource.