Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rack Middleware which sets all POSTs to GETs to allow for the Representational State Transfer architecture on Facebook Canvas.

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.markdown

Rack::RestBook

Make all POST calls become GET. This allows us to do REST development with Facebook, which will always send a POST with iframes (as of March 10, 2011). If you need to actually POST something, add this parameter to the query string: _method=METHOD (so _method=post, _method=put, or _method=delete).

Your application will still respond to real HTTP verbs as long as they are not POST. Rack::RestBook ignores other verbs.

The real documentation for this gem is in test/test.rb.

Installation and Usage

$ gem install rack-rest_book

require 'rack/rest_book'
use Rack::RestBook

Testing

$ bundle install
$ ruby test/test.rb
Something went wrong with that request. Please try again.