add ip address to rails3 format