Displaying 2 results from an estimated 2 matches for "_verb".
Did you mean:
verb
2007 Jun 22
3
Simulate HTTP put and delete in Camping/SleepingBag
...erbs, that
are supposed to be used. But unfortunately PUT and DELETE are not
supported by browsers. In Rails, these are simulated with a hidden
field "method" that contains these meta information. In the Mailing
List Archive a found a hint, that sleeping bag would use a hidden
field "_verb" respectively, but I cannot make it work, neither can I
find any hints on that issue in the source of sleeping bag.
Does anybody know, how I can build a link/form to update and destroy?
Thanks for these great tools, both camping and sleeping bag feel as
lightweight as it gets.
Cheers,
Greg...
2006 Nov 14
11
RESTful mixin, mixin repo?
Hi,
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.
Code:
http://pastie.caboo.se/22613
Is there any permanent repo of little code snippets/mini-libra...