Hey Why and Rick,

I carved you a little corner of the svn just for your snazzy upload
progress code.  You now can do all your own stuffs in the
projects/mongrel_upload_progress directory.  It's all setup and ready to
be turned into a gemplugin.

Basic process is read:

http://mongrel.rubyforge.org/docs/gem_plugin.html

So you get an idea of how they're crafted, then here's the RDoc:

http://mongrel.rubyforge.org/gem_plugin_rdoc/

Once you got a handle on that, you just fill in the lib with your code,
hook up the init.rb and you're golden.

Let me know if there's *minor* core API changes that need to be made to
get this stuff working.

To test it out you just build the gem with the Rakefile, then run your
test app.  The theory is if you did it right folks should be able to
install your handlers by writing a config/mongrel.conf and using the -S
command line option (or whatever Why does for Camping).

Ping me up as you do this so I can help you through the stuff.  I'll be
interested in writing a document on how it was made.




On Thu, 2006-05-11 at 17:06 -0600, why the lucky stiff wrote:
> Rick Olson wrote:
> > respond_to do |accepts|
> >  accepts.html { out.write("size: #{status['size']}\nreceived:
> > #{status['received']}\n") }
> >  accepts.js do
> >    head['Content-Type'] = 'text/javascript'
> >    out.write("{size:#{status['size']},received:#{status['received']}}")
> >  end
> > end if status
> Let's get it checked in.  What about:
> 
>   respond_to do |accepts|
>     accepts.html { out.write("size: #{status['size']}\nreceived: 
> #{status['received']}\n") }
>     accepts.js { 
> out.write("{size:#{status['size']},received:#{status['received']}}") }
>   end if status
> 
> We're storing all the mimetypes, let's do a nice thing.

-- 
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/


_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to