nyros_form2 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1abd60dbb7cacbdcbc0b63428a9bf99bfdf88ba5cca537794539ccca312bb41e
4
- data.tar.gz: c6c538fb70ff08ef2d2f37bd7eafbff163e2ebc3deb3c968aedfc20f634c3f92
3
+ metadata.gz: 34846da057696e9bfaf90dcaba9beadad726f46f549831cf8b16d029dd2f5479
4
+ data.tar.gz: c8c47b3c4972bafea91ea2406f906b147a8955a3925d6650f2c0923fc6551fc5
5
5
  SHA512:
6
- metadata.gz: 1d24b1e03aabb19a633b6d00f4e809735e1d9c23d91918a84e9d7adaa42f3117ab5d2f6038c6aeab50138dd93a8cc35a14d9f46d9ead894e87bb0abdbf9e5510
7
- data.tar.gz: 0677da39d9a78ebb1729b66a3996db11375abce51c9d427a55b7d85dbd5edb3715a32bc48e9325ea1732966af8f7bbf673bf8882866d5d13fb70d4b8c469012f
6
+ metadata.gz: 6ac77eb97931ab3f25d84d459f3fb08878245f77c1a020fd19ad88b882ce14feb07de1d8c132c1f86689bd1233a74deaa5764e4f658931c993cbff46df0343ab
7
+ data.tar.gz: 79b886769e63ed00adeb6e756c4525bf116a781eadd0b56f37071ab5fca4cc012778d866d69b60dcd25c666126157901a7ca647182bfbf67a7bb4dfe79454897
@@ -16,8 +16,10 @@
16
16
  email: true
17
17
  },
18
18
  mobile: {
19
- required: true,
20
- minlength: 10
19
+ required: true,
20
+ digits: true,
21
+ minlength: 10,
22
+ maxlength: 10,
21
23
  }
22
24
  },
23
25
  // Specify validation error messages
@@ -25,7 +27,7 @@
25
27
  name: "Please enter your firstname",
26
28
  mobile: {
27
29
  required: "Please Enter mobile number",
28
- minlength: "Your Mobile must be at least 10 characters long"
30
+ minlength: "Your Mobile must be at least 10 numbers long"
29
31
  },
30
32
  email: "Please enter a valid email address"
31
33
  },
@@ -72,7 +74,7 @@
72
74
  <% end %>
73
75
 
74
76
  <div>
75
- <%= link_to "Back", users_path, class: "btn btn-sm btn-info"%>
77
+ <%= link_to "Back", users_path %>
76
78
  </div>
77
79
  </div>
78
80
  </div>
@@ -16,8 +16,10 @@
16
16
  email: true
17
17
  },
18
18
  mobile: {
19
- required: true,
20
- minlength: 10
19
+ required: true,
20
+ digits: true,
21
+ minlength: 10,
22
+ maxlength: 10,
21
23
  }
22
24
  },
23
25
  // Specify validation error messages
@@ -25,7 +27,7 @@
25
27
  name: "Please enter your firstname",
26
28
  mobile: {
27
29
  required: "Please Enter mobile number",
28
- minlength: "Your Mobile must be at least 10 characters long"
30
+ minlength: "Your Mobile must be at least 10 numbers long"
29
31
  },
30
32
  email: "Please enter a valid email address"
31
33
  },
@@ -35,6 +37,8 @@
35
37
  }
36
38
  });
37
39
  });
40
+
41
+
38
42
  </script>
39
43
  <body >
40
44
  <div class="container" >
@@ -72,7 +76,7 @@
72
76
  <% end %>
73
77
 
74
78
  <div>
75
- <%= link_to "Back", users_path, class: "btn btn-sm btn-info"%>
79
+ <%= link_to "Back", users_path%>
76
80
  </div>
77
81
  </div>
78
82
  </div>
@@ -1,3 +1,3 @@
1
1
  module NyrosForm2
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nyros_form2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - raju rekadi