Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
MASK_VALIDATOR GEM      (WITH TRICKS)Validate masks without having to handle withouth regular                      express...
@MARCELOCAJUEIRO• Software   engineer at NoHup• Product   owner translator• Looking   for knowledge, networking and money
jquery.masked_input
mask_validator
Use custom simple_form form builder to call the masked input   through the mask validator
Overwriting the simple_form_for helper
Finally!Auto masked input when has data-mask in the input
ONLY THIS TO THIS
NOTES• masked_input (github.com/digitalBush/jquery.maskedinput)• mask_validator (github.com/MarceloCajueiro/mask_validator...
Mask validator gem with tricks
Mask validator gem with tricks
Upcoming SlideShare
Loading in …5
×

Mask validator gem with tricks

2,530 views

Published on

This little talk is about my simple gem that validate the masked inputs and about a trick to add some DRY to your application with simple_form gem with a custom form builder.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Mask validator gem with tricks

  1. 1. MASK_VALIDATOR GEM (WITH TRICKS)Validate masks without having to handle withouth regular expression
  2. 2. @MARCELOCAJUEIRO• Software engineer at NoHup• Product owner translator• Looking for knowledge, networking and money
  3. 3. jquery.masked_input
  4. 4. mask_validator
  5. 5. Use custom simple_form form builder to call the masked input through the mask validator
  6. 6. Overwriting the simple_form_for helper
  7. 7. Finally!Auto masked input when has data-mask in the input
  8. 8. ONLY THIS TO THIS
  9. 9. NOTES• masked_input (github.com/digitalBush/jquery.maskedinput)• mask_validator (github.com/MarceloCajueiro/mask_validator)• mask_validator_example (github.com/MarceloCajueiro/mask_validator_example)• simple_form (github.com/plataformatec/simple_form)• slides (slideshare.net/Marcelocajueiro)• twitter (@MarceloCajueiro)

×