public
Description: Allows the use of extensionless formats in ActiveResource removing the .xml or .js from the end of the path
Homepage:
Clone URL: git://github.com/davidsmalley/extensionless_format.git
RaVbaker (author)
Sat Sep 05 12:34:58 -0700 2009
davidsmalley (committer)
Fri Oct 16 08:21:01 -0700 2009
name age message
file MIT-LICENSE Wed Mar 26 11:03:47 -0700 2008 Created the extensionless format plugin [davidsmalley]
file README Wed Mar 26 11:17:24 -0700 2008 Changed one bit of the docs [davidsmalley]
file init.rb Wed Mar 26 11:03:47 -0700 2008 Created the extensionless format plugin [davidsmalley]
directory lib/ Loading commit data...
directory spec/ Wed Mar 26 11:03:47 -0700 2008 Created the extensionless format plugin [davidsmalley]
file uninstall.rb Wed Mar 26 11:03:47 -0700 2008 Created the extensionless format plugin [davidsmalley]
README
ExtensionlessFormat
===================

A plugin written by David Smalley from Litmus (http://litmusapp.com) to help us interface with RESTful XML 
webservices that don't support the .xml extension added by ActiveResource as default.

This plugin so far just defines the :xml_no_extension format to use in your ActiveResource models.


Example
=======

class Something < ActiveResource::Base
  
  self.site = "http://someone:password@an-app.com"
  self.prefix = "/api/"
  self.format = :xml_no_extension
  
end

Calls to Something.find(:all) will now generate http://an-app.com/somethings rather than 
http://an-app.com/somethings.xml


Copyright (c) 2008 [David Smalley], released under the MIT license