Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rack Middleware which sets all POSTs to GETs to allow for the Representational State Transfer architecture on Facebook Canvas.
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/rack
test
.gitignore
Gemfile
README.markdown
rack-rest_book.gemspec

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.