sarawong 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sarawong/header.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88915a55f9436c8c2ed00af2788e720d97dd7aed
|
4
|
+
data.tar.gz: ca50b01d0372364c9a3376167e8b7445e53bd55a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 868ea03a554574f15258cfbc0a08eb4e1f7b04159aede3c11105a74430bf54526de404bfa4c82ced683483c49624c633999775bb3086c7da157766c3216805b0
|
7
|
+
data.tar.gz: 33b7ed6bb2b7c20d9fd9973a87dd889a23846a94a73fa61f752ad35197c49aeb5c7bd3312bc0badb05d9c266dfc3d4de29d4fcbba90a3a2feda65c403e73becd
|
data/lib/sarawong/header.rb
CHANGED
@@ -3,7 +3,7 @@ module Builder
|
|
3
3
|
return '<meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>'+title+'</title><meta name="description" content=""><meta name="viewport" content="width=device-width, initial-scale=1">'
|
4
4
|
end
|
5
5
|
def self.form(db, columnNames)
|
6
|
-
form = '<form action="/' + db + 's" method="post">'
|
6
|
+
form = '<form action="/' + db.to_s + 's" method="post">'
|
7
7
|
columnNames.each do |column|
|
8
8
|
form = form + '<label>' + column.titleize + '</label><input type="text" name="'+column+'">'
|
9
9
|
end
|