Rails zip_code validations with prefix zero issue

rails if we make zip_code as integer value in database it will not gives
the zip_code validations when we give zip_code as 01234 it takes as 1234
like all prefix zeros

solution:-

we have to to make zip_code as string then it will validates zip_code
properly to all zip_codes like 01234

Comments

Popular posts from this blog

Rails Memcache issues

scp command usage guide

ROR HEROKU Working with file storage like paperclip in heroku for free of cost ( paperclip and dropbox) paperclip-dropbox config | ROR, HEROKU, file storage, paperclip, in heroku, free of cost, paperclip, dropbox, paperclip-dropbox config