Validates_format_of :zipcode

how can I set the validation of the zipcode ?

you’ll want to try a regexp. look here for the code

it’s in there somewhere…
hope this helps

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs