fix regexp for validate an integer in guides [ci skip]

This commit is contained in:
yuuji.yaginuma 2015-01-22 22:56:41 +09:00
parent 9d519eefbc
commit fce9c4e5e1
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ point number. To specify that only integral numbers are allowed set
If you set `:only_integer` to `true`, then it will use the
```ruby
/\A[+-]?\d+\Z/
/\A[+-]?\d+\z/
```
regular expression to validate the attribute's value. Otherwise, it will try to