|
RESTful mixin, mixin repo?: msg#00008lang.ruby.camping.general
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-libraries for Camping? Is the wiki the best place? I think a lot of camping code could be re-used via mixins and it would be nice to have a Camping-forge type place to go find existing work. Cheers, -Mark |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [UHH] any blogs sprung from camping?, Mark Fredrickson |
|---|---|
| Next by Date: | Re: RESTful mixin, mixin repo?, Rodney Ramdas |
| Previous by Thread: | Re: [UHH] any blogs sprung from camping?, Mark Fredrickson |
| Next by Thread: | Re: RESTful mixin, mixin repo?, Rodney Ramdas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | Mail Home | sitemap | FAQ | advertise |