Rails validation required numericality even though presence is not set to true
validates :network_id, :numericality => true, :allow_nil => true
validates :network_id, :numericality => {:allow_blank => true}
You should use allow_blank
validates :network_id, :numericality => true, :allow_blank => true