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,437 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
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,437
On SlideShare
0
From Embeds
0
Number of Embeds
98
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • 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)

    ×