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.

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

Reply via email to