I''m attempting to use Instiki as a sort of psuedo content management system for a client. It includes customizing the html export function to export the wiki content wrapped in their appropriate header and footer and returning a zip with .asp file extensions. I''ve got it working fairly well, but one thing that I need to do and am not quite sure how to approach, I need to change the spaces in the file names that it exports from plus signs to underscores. Anyone have any guidance on the best place/way to start poking around? Seems like that''s perhaps a Rails function, perhaps I could redefine somewhere... Derek
On Aug 17, 2005, at 1:02 PM, Derek Gulbranson wrote:> I need to change the spaces in the file names that it exports from > plus signs to underscores.nevermind, i figured it out. i changed: zip_out.put_next_entry("#{CGI.escape(page.name)}.#{file_type}") to zip_out.put_next_entry("#{CGI.escape(page.name).gsub(''+'', ''_'')}.# {file_type}") in wiki_controller.rb''s Zip::ZipOutputStream.open call ..for posterity.