title: Compressing large string in ruby
body: <p>I have a web application(ruby on rails) that sends some YAML as the value of a hidden input field. </p>
  
  <p>Now I want to reduce the size of the text that is sent across to the browser. What is the most efficient form of lossless compression that would send across minimal data? I'm ok to incur additional cost of compression and decompression at the server side. </p>