Damn... after all my searching this pops up AFTER I write the plugin. Oh well, mine's slightly different so I'll go ahead and release it anyways. 1. Looks like his just writes strings with commas, so it doesn't handle escaping quotes or anything like that. 2. Also, looks like you set the header and fields in the model... whereas with mine you can set them on the fly in the controller. 3. I specifically needed to be able to do this: respond_to do |wants| wants.xml { render :xml => @collection.to_xml } wants.csv { render :text => @collection.to_csv } end so there is a bit of MimeType code in the plugin as well. 4. I noticed his takes a block. I saw some other similar code that did this and I was considering it... but I just didn't see a real need for it at the time. Oh well... to each his own I suppose. Thanks for the link Kevin. On Aug 30, 2006, at 9:51 AM, Kevin Clark wrote: So, Scott Raymond just solved your problem: On 8/30/06, Chris Abad <[EMAIL PROTECTED]> wrote:
-- Kevin Clark _______________________________________________ Sdruby mailing list |
_______________________________________________ Sdruby mailing list [email protected] http://lists.sdruby.com/mailman/listinfo/sdruby
