logo       

Re: RESTful mixin, mixin repo?: msg#00014

lang.ruby.camping.general

Subject: Re: RESTful mixin, mixin repo?

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:


--
Chris Wanstrath



_______________________________________________
Camping-list mailing list
Camping-list-GrnCvJ7WPxnNLxjTenLetw@xxxxxxxxxxxxxxxx
http://rubyforge.org/mailman/listinfo/camping-list
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise