xml_to_form 0.0.3 → 0.0.4
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 +4 -4
- data/README.rdoc +2 -2
- data/app/views/xml_to_form/xml_handlers/upload_file.html.erb +1 -1
- data/lib/xml_to_form/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89c0584315d06a123405452c3b4ef0896a82bf21
|
|
4
|
+
data.tar.gz: bdc278fcb2b9a2d39753c37a29fafc255a54fbe4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 815a1e040f14d4ee5c1867577ea8b5165726610857215633b0804cd1c1190d4ca246d303be10513d2605d8c3de2b2226a5680ce8ac39233527aff96a25923bc2
|
|
7
|
+
data.tar.gz: 850974893cc286148c00bc143417a639ec973e8c5028e23ec68614728daee79b315da0a60d6329ff11bc62e513a350c669a658572cccdfb6186eba0438aef682
|
data/README.rdoc
CHANGED
|
@@ -24,9 +24,9 @@ Migrate it in db:
|
|
|
24
24
|
|
|
25
25
|
To use this gem you just need to mount it in your route file *config/routes.rb*
|
|
26
26
|
|
|
27
|
-
<tt>mount XmlToForm::Engine =>
|
|
27
|
+
<tt>mount XmlToForm::Engine => '/xml_handler' </tt>
|
|
28
28
|
|
|
29
|
-
Then hit the url <tt> localhost:3000/xml_handler
|
|
29
|
+
Then hit the url <tt> localhost:3000/xml_handler</tt>
|
|
30
30
|
|
|
31
31
|
then you will see a file upload button to upload a xml file after uploading a file you will see nested rails form for updating xml file whatever value you will update it will update the xml file and will create an updated.xml file.
|
|
32
32
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<%= form_tag
|
|
1
|
+
<%= form_tag({controller: "xml_handlers", action: "xml_form"}, method: "post", multipart: true) do %>
|
|
2
2
|
<label for="file">File to Upload</label> <%= file_field_tag "file" , accept: 'text/xml', class: 'xml_file_uploader'%>
|
|
3
3
|
<%= submit_tag 'submit', class: 'submit_file'%>
|
|
4
4
|
<% end %>
|
data/lib/xml_to_form/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xml_to_form
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- nitanshu verma
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-07-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|