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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e1a789fde67eaff11c6665aa84c10f3e0093ddc
4
- data.tar.gz: 3fd46b7d987de1d53b54c01fee7e6efbd99be5ab
3
+ metadata.gz: 89c0584315d06a123405452c3b4ef0896a82bf21
4
+ data.tar.gz: bdc278fcb2b9a2d39753c37a29fafc255a54fbe4
5
5
  SHA512:
6
- metadata.gz: f4475d7bf64de7b4339526a6efda9bdaf365447a21c7ef5975a6aa3cd74e5f1fa55ca7c2ca43e6776b7a5c9415ae1ee5eb23c7fb2bb8c6ff5735afaef601e299
7
- data.tar.gz: aaac051ceec3ea1b4b3334a7c292f89b1b13bcf4fdd6dbaa29e69e63afd605d1a6be24f32e7380b05d68994416d0704936e2c59e67195b72b4960d07e4bfe6e1
6
+ metadata.gz: 815a1e040f14d4ee5c1867577ea8b5165726610857215633b0804cd1c1190d4ca246d303be10513d2605d8c3de2b2226a5680ce8ac39233527aff96a25923bc2
7
+ data.tar.gz: 850974893cc286148c00bc143417a639ec973e8c5028e23ec68614728daee79b315da0a60d6329ff11bc62e513a350c669a658572cccdfb6186eba0438aef682
@@ -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 => "/xml_handler" </tt>
27
+ <tt>mount XmlToForm::Engine => '/xml_handler' </tt>
28
28
 
29
- Then hit the url <tt> localhost:3000/xml_handler/upload_file</tt>:
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 'xml_form', multipart: true do %>
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 %>
@@ -1,3 +1,3 @@
1
1
  module XmlToForm
2
- VERSION = "0.0.3"
2
+ VERSION = '0.0.4'
3
3
  end
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.3
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-03-26 00:00:00.000000000 Z
11
+ date: 2017-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails