Posts by Kirk • 139 points
6 posts
-
0
votes1
answer47
viewsQ: Bcrypt - Automating password encryption process
Hello. I already have a column in my database called password. Use Password for authentication, so he created another column called encypted_password. Even if I copy all the password values and play…
-
0
votes1
answer88
viewsQ: How to do a data migration routine?
Suppose I have a registration model and a user model. How do I get each registration record sent to the users? This should also be done to each new record that is created in the register, it should…
-
2
votes1
answer48
viewsQ: nullifying function action if result is false
I have the following function: if the input is Nan, it focuses on the field and changes the border function validaNumero(){ dado = document.getElementById("new_partner"); var formulario =…
-
0
votes1
answer32
viewsQ: Changing input border with Javascript
What’s wrong? I need this effect to validate form. var input = document.getElementByClass("dado"); input.style.border = "1px solid red";…
-
11
votes3
answers347
viewsQ: Difference between validation and mask
I am making form validations. As for validation, everything goes well, but how to format the fields according to the data entered? Example: in a date field, bars are added automatically, in a phone…
-
0
votes1
answer45
viewsQ: Custom id on form button
I have a button to send a form <div class="actions"> <%= f.submit, html: {class: "button"}%> </div> But none of the HTML attributes (class and id) work, just cause me error on the…
ruby-on-railsasked Kirk 139