How to not convert a string to 0 while user makes a wrong input in Ruby on Rails 6?

前端 未结 0 920
太阳男子
太阳男子 2020-12-16 18:20

I have a model in which I want to validate number of tightenings which user made. It must be only a non-negative integer. The problem is that when I input a string, it autom

相关标签:
回答
  • 消灭零回复
提交回复
热议问题