Range(..) to Range(...)
change unused_ip_addresses into AvailableIpAddress
change select form to send available_ip_address_id