Plugins - SimplyRestful Backport

StarAdd to favorites

Many of us have seen the RailsConf 2006 speech by DHH and want to experiment with a more RESTful Rails. With a little poking around, you will see that the stable Rails 1.1.4 (at the time of writing) is not able to support the latest features of SimplyRestful. I was able to backport most of it (not much), except those features which require Edge Rails:

  • must install request_routing plugin
  • tests work with a modified assert_recognizes
  • route separators like ’;’ were changed to ’/’

Also, I have written a patch for form_tag so you can use ’:method => :put’. Requests for prototype and other Edge Rails conversions related to SimplyRestful can be included on demand — please visit the Trac site below and post a ticket.

mabs29

http://www.mathewabonyi.com/

http://mabs29.googlecode.com/svn/trunk/plugins/simply_restful_backport

Rails' (MIT)

  • Currently 4.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Controllers

Tags

Comments

Add a comment
mabs29 13 Jul 2006

A lot of Edge Rails is using the :method option for tags to 'hack' the request method now. I made my own version for form_tag (which I think a little better) so you don't need to worry about what is going on under the hood -- as it should be.

The following are all valid.

form_tag { :action => 'update' }, { :method => :put } form_tag :action => 'update', :method => :put form_tag { :action => 'update', :method => :put }

mabs29 13 Jul 2006

Because there are no route separators, of course, Rails 1.1.4 simply cannot do '.:format'.

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?