The gem client_side_validations doesn`t validate select tag with no item selected. Maybe need to pass some params in model or .erb file?
Asked
Active
Viewed 733 times
1 Answers
2
Solution is trying to do validate presence. Try validating numericality / greater than > 0.

Egor Malkevich
- 1,516
- 1
- 11
- 24
-
A little hackish IMO. Is there a technical obstacle to making this work without having to validate this way? – Isaac Betesh Aug 12 '13 at 22:13
-
If you are validating select tag with related models, use `validates :model_name_id` instead of `validates :model_name` (in model file) eg. `validates :client_id` instead of `validates :client`. – jmarceli Mar 31 '15 at 18:07