Open
Conversation
Collaborator
|
https://github.com/plataformatec/simple_form#available-input-types-and-defaults-for-each-column-type |
Collaborator
Author
|
@h-m-m this is the PR I mentioned. @cflipse yeah I saw that take but the way it says generated HTML element numeric for all 3 of them it wasn't clear if it actually enforced it being an integer at the field level? Probably that's just confusing docs though and you're right, easy enough to test anyway. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@cflipse there's more data the form builder is implying we'll use that we're still not, like max/min values and whatnot, but these are a good start...
I don't see if/how simpleform supports integer only inputs, though i think it may support step sizes, so integers have a step size of 1.0 maybe? max/min may be easiest by giving it a range collection when max/min are present.