RESTful mixin, mixin repo?

Chris Wanstrath chris at ozmm.org
Tue Nov 14 17:32:22 EST 2006


On Nov 13, 2006, at 10:37 PM, Mark Fredrickson wrote:

> I just put together a little mixin to provide pseudo-RESTful services
> in camping apps. Basically, it looks for a hidden _verb field in form
> posts, and sets the @method to the supplied value (e.g. put or delete
> - which browsers don't support). This lets you define put and delete
> methods in your controllers. Groovy.

That's rad.

While we're on the topic, I rolled a Railsish respond_to method for  
my Camping app:

http://pastie.caboo.se/22733

--
Chris Wanstrath
http://errtheblog.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20061114/fc8aaaf3/attachment.html 


More information about the Camping-list mailing list