title: How to get the IP address of my local machine in Ruby?
body: <p>I am doing Rails development in Ubuntu 12.04LTS OS. </p>
  
  <p>I want to capture my local IP address in a file, not the loopback 127.0.0.1, the one which I get using <code>ifconfig</code>.  Please suggest a solution.</p>