https://github.com/sixarm/sixarm_ruby_xhr_to_xml
SixArm.com » Ruby » Rails helper to change request.format from xhr to xml for JQuery and AJAX
https://github.com/sixarm/sixarm_ruby_xhr_to_xml
gem rails ruby xhr xml
Last synced: 2 months ago
JSON representation
SixArm.com » Ruby » Rails helper to change request.format from xhr to xml for JQuery and AJAX
- Host: GitHub
- URL: https://github.com/sixarm/sixarm_ruby_xhr_to_xml
- Owner: SixArm
- License: other
- Created: 2010-10-18T16:39:05.000Z (over 15 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T19:29:23.000Z (almost 3 years ago)
- Last Synced: 2025-02-06T00:24:09.633Z (over 1 year ago)
- Topics: gem, rails, ruby, xhr, xml
- Language: Ruby
- Homepage: http://sixarm.com
- Size: 250 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# SixArm.com → Ruby →
Rails helper to change request.format from xhr to xml for JQuery and AJAX
* Doc:
* Gem:
* Repo:
## Introduction
Gem wrapper for http://codetunes.com/2009/01/31/rails-222-ajax-and-respond_to/
For docs go to
Want to help? We're happy to get pull requests.
## Install
### Gem
To install this gem in your shell or terminal:
gem install sixarm_ruby_xhr_to_xml
### Gemfile
To add this gem to your Gemfile:
gem 'sixarm_ruby_xhr_to_xml'
### Require
To require the gem in your code:
require 'sixarm_ruby_xhr_to_xml'
## Example
class ApplicationController < ActionController::Base
...
include XHRToXML
before_filter :rubygem_xhr_to_xml
...
end