forked from davidsmalley/extensionless_format
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
24 lines (14 loc) · 704 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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:[email protected]"
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