New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validation_max bug in inputs/base/validations in v2.0.0.rc3 #606
Comments
If you'd like to try to patch it, I would take a look at
This line is assuming that
The I was about to suggest another work-around may be to try If you wish to bypass this logic completely until it's sorted out, a custom version of
Basically, it will only use min/max/step from the options, not from validations, etc. |
Spot on suggesting me to patch it. I am a ruby n00b still but thanks to your detailed description of the problem I think I'll manage to solve this one. Give me a day or so to do this and I'll send you a pull request. If I wanted to write tests for this I suppose that I'd add this for both range_input_specs, number_input_specs? |
Yes, they're the right places to add coverage, but it could be a lot of data to set-up, so a quick hack around with |
Ok so I fixed the issue but I have to spend some time with the specs before I can add that. A LOT!! of setting up done in the spec_helper :) |
@mhenrixon, how's the specs going? Would love to get a new RC out this week! |
Sorry about that, I completely forgot about it. Will try and create something tonight. |
I have this numericality validation in my model and now it seems like formtastic chokes on it somehow when trying to follow the Proc.
Error message:
View code:
The text was updated successfully, but these errors were encountered: