|
|
|
|
|
by bradgessler
1273 days ago
|
|
In my web apps, I make dates text boxes that can handle inputs like “next Thursday”, “Monday at 5p”, etc by running the inputs through https://github.com/mojombo/chronic I like the idea of inputs being able to make sense of as wide of a variety or formats as possible. For number inputs I’d like to build into Rails something that can handle basic math expressions. For example, a person can enter “120 / 2” in an input and get 60. This is useful for expense apps where you need to expense half of something. If folks are interested, I can open source these bits. I’d like to expand them as much as possible to handle an even wider variety of inputs. |
|