form_creation 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45145cb36243c500e2d67deaaeaa879d3e691e9b447dace546cf3ed29c75549b
|
4
|
+
data.tar.gz: cf33e500856cbedf0a8bda1d4af6bd603e153131b41c8dd486fd18e710abd885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec198a775d52a0c4cf33c020bee49fa03f4d49f1f4735df725c82a5dcb1f399e44e3a7589b2383990b61065ea4faba2d3e870fbb721389c168b14ca7daa874ef
|
7
|
+
data.tar.gz: e1ba98df5360afb8a8a4d9bb72dc5ea03126394f8f5f585d75f10cb52035800e72a65d0eaf3dc12f6d6d3e6bf80773f42482d02564e79f717df44419144e3407
|
@@ -13,3 +13,17 @@
|
|
13
13
|
//= require rails-ujs
|
14
14
|
//= require activestorage
|
15
15
|
//= require_tree .
|
16
|
+
$(document).ready(function(){
|
17
|
+
$("#new_post").validate({
|
18
|
+
rules: {
|
19
|
+
title: "required",
|
20
|
+
description: "required",
|
21
|
+
created_by: "required",
|
22
|
+
},
|
23
|
+
messages: {
|
24
|
+
title: "Please enter title",
|
25
|
+
description: "Please enter description",
|
26
|
+
created_by: "Please enter create_by",
|
27
|
+
},
|
28
|
+
});
|
29
|
+
});
|
@@ -1,17 +1,17 @@
|
|
1
1
|
// Place all the behaviors and hooks related to the matching controller here.
|
2
2
|
// All this logic will automatically be available in application.js.
|
3
3
|
|
4
|
-
$(document).ready(function(){
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
});
|
4
|
+
// $(document).ready(function(){
|
5
|
+
// $("#new_post").validate({
|
6
|
+
// rules: {
|
7
|
+
// title: "required",
|
8
|
+
// description: "required",
|
9
|
+
// created_by: "required",
|
10
|
+
// },
|
11
|
+
// messages: {
|
12
|
+
// title: "Please enter title",
|
13
|
+
// description: "Please enter description",
|
14
|
+
// created_by: "Please enter create_by",
|
15
|
+
// },
|
16
|
+
// });
|
17
|
+
// });
|