Hi Mark, Thanks for the tip, with the help of this snippet, the actions are routed correctly.
SleepingBag is a REST-API for Camping, that I stumbled upon on this mailing list, I guess. It provides you with rails-like routing to the standard REST methods for your controllers. Unfortunately, there is not a lot of documentation, but the specs and the given example is quite sufficient. You may find it at http://code.google.com/p/sleepingbag/ and in this list at http://www.mail-archive.com/[email protected]/msg00150.html with some introductory words. Best, Gregor On 6/22/07, Mark Fredrickson <[EMAIL PROTECTED]> wrote: > Hi Gregor, > > Take a look at: > > http://osdir.com/ml/lang.ruby.camping.general/2006-11/msg00008.html > > I'm not familiar with sleeping bag (link?) but perhaps this will help. > > -M > > > On 6/22/07, Gregor Schmidt <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I'm not yet a camping guru nor a RESTafarian, but I try. > > > > Currently I'm trying to build a rest-style web app with sleeping > > bag/camping and I may successfully access the index, show, new, create > > and edit methods, that are provided with sleeping bag. But I don't > > know, how to build a form or link to access destroy and update. > > > > I think this is mainly because of the corresponding HTTP verbs, 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, > > > > Gregor > > _______________________________________________ > > 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 > _______________________________________________ Camping-list mailing list [email protected] http://rubyforge.org/mailman/listinfo/camping-list

