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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/camping-list
> >
>
>
> --
> Rodney
> http://www.pinupgeek.com
> http://www.dutchrailers.org
> _______________________________________________
> Camping-list mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/camping-list
>
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list