Changeset 220
- Timestamp:
- 08/07/08 23:02:13 (4 months ago)
- Files:
-
- nethorus/app/helpers/application_helper.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nethorus/app/helpers/application_helper.rb
r176 r220 240 240 end 241 241 242 243 # Validates an IP address by attempting to convert it to an integer, then back again.244 245 def validate_ip_address(ip_address)246 247 begin248 test_address = IPAddr.new(ip_address)249 rescue250 return false251 end252 253 return true254 255 end256 257 242 end
