An open API service indexing awesome lists of open source software.

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

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