This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Allows the use of extensionless formats in ActiveResource removing the .xml or .js from the end of the path
License
davidsmalley/extensionless_format
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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
About
Allows the use of extensionless formats in ActiveResource removing the .xml or .js from the end of the path
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published