title: How to do create IP address range
body: <p>Is there any way to create IP address range? like 192.168.0.1/24.
  It's too annoy to create a data each time.
  I find a Rubygems' ipaddress.
  <a href="http://rubygems.org/gems/ipaddress" rel="nofollow">http://rubygems.org/gems/ipaddress</a>.
  I would like to take this to created IP range.</p>
  
  <p>in new.heml.erb</p>
  
  <pre><code>&lt;%= f.lable :iprange %&gt;
  &lt;%= f.text.field :iprange %&gt;
  </code></pre>
  
  <p>I don't how do used it in the rails' models</p>
  
  <pre><code>ip = IPAddress("192.168.0.1/24")
  ip.each do |i|
   p i.to_s
  end
  </code></pre>
  
  <p>Somebody can give me some guide.</p>