From: Dan Date: 2007-08-05T00:05:00+09:00 Subject: Re: Better way to do this? Currently using two method_missing calls... On Aug 4, 10:55 am, Xavier Noria wrote: > El Aug 4, 2007, a las 4:20 PM, Dan escribi�: > > > Ok, I see where you were going now. I guess I could go in that > > direction, but since sending functions and objects to the web service > > is just done via POST params, so I'd rather route all the requests to > > the "call" class method on my API class. Any ideas on how to do this > > without having to create a instance of the API class (or any class) > > just to store the "object" name ? > > The idea is then that something like > > API.images.find_by_name(name) > > translates to a POST request where "images" and "find_by_name" are > string values? > > -- fxn exactly