Skip to content

Commit

Permalink
Merge pull request #331 from italomatos/bug/sign-up-screen-on-footer
Browse files Browse the repository at this point in the history
fixed sign up page bug
  • Loading branch information
italomatos committed Oct 13, 2019
2 parents 3ec680e + 7d81e6a commit a728655
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions app/views/registrations/new.html.erb
Expand Up @@ -32,14 +32,16 @@
</div>

<%= content_for :js do %>
$(document).ready(function() {
var validator = $("#user_new").validate({
rules: {
'user[email]': "required",
'user[name]': "required",
'user[password]': { required: true, minlength: 6 },
'user[password_confirmation]': { required: true, minlength: 6, equalTo: '#user_password' }
}
<script type="text/javascript">
$(document).ready(function() {
var validator = $("#user_new").validate({
rules: {
'user[email]': "required",
'user[name]': "required",
'user[password]': { required: true, minlength: 6 },
'user[password_confirmation]': { required: true, minlength: 6, equalTo: '#user_password' }
}
});
});
});
</script>
<% end -%>

0 comments on commit a728655

Please sign in to comment.