|
Re: Re: RESTful mixin, mixin repo?: msg#00010lang.ruby.camping.general
I'd be happy to include this on the wiki. Can some explain how to add a helper function into the including module's namespace? eg. How do I get module Camping module REST module Helpers def form ... end end end end properly mixed in (so as to provide a form helper to override markaby) using 'include Camping::REST' Thanks, -M On 11/14/06, Rodney Ramdas <rramdas-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote: > hey, that's nice > > perhaps you could write up a page on the wiki ? > > http://code.whytheluckystiff.net/camping/wiki/LikeRails > > > > On 11/14/06, Mark Fredrickson > <mark.m.fredrickson-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote: > > 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 > > _______________________________________________ > > Camping-list mailing list > > Camping-list-GrnCvJ7WPxnNLxjTenLetw@xxxxxxxxxxxxxxxx > > http://rubyforge.org/mailman/listinfo/camping-list > > > > > -- > Rodney > http://www.pinupgeek.com > http://www.dutchrailers.org > _______________________________________________ > Camping-list mailing list > Camping-list-GrnCvJ7WPxnNLxjTenLetw@xxxxxxxxxxxxxxxx > http://rubyforge.org/mailman/listinfo/camping-list >
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: RESTful mixin, mixin repo?, Rodney Ramdas |
|---|---|
| Next by Date: | Re: [UHH] any blogs sprung from camping?, Jonas Pfenniger |
| Previous by Thread: | Re: RESTful mixin, mixin repo?, Rodney Ramdas |
| Next by Thread: | Re: Re: RESTful mixin, mixin repo?, Jonas Pfenniger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |