rails-fort 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: 75b670e0f2ea2eb7ca440e1d8308645e35cf1245
4
- data.tar.gz: 03af799d169ba985513f7f79845314c34743a2a3
3
+ metadata.gz: 9931e59cecb47189e3457c4cfc0619d33e2bdd23
4
+ data.tar.gz: 9e4973d3179b7936035f8b918c71281d9db935be
5
5
  SHA512:
6
- metadata.gz: 884a4b97caff5a7c9e25df6ab94599c6965e5722ccf44e2a0ef31b65a644f198961375e2dc9729dc8ef582c393c91227b7681572e88af945fe6eaa174aec9ccd
7
- data.tar.gz: 7ca30f6fb29c1644d9bf8b754ba233ab3c35049a19927f9f29ec378b8819a5aa547ec9d1fe3bee90c0b391ba0292db5342ef66ee93f89395be4f5355619df3da
6
+ metadata.gz: 4051176647c611553839d7e827cc926cc3476cdcb6e5fa312d28c2599feef9205c0dc109f10479b5ba8780fc9691212548239ba726ceafcb288a9013c9e8cd93
7
+ data.tar.gz: cedd3e67c7f450fd39263ba61ae849236fabb3ce432aadc181b77681e613c7ec61ec889ec1e4f2d9493ca601e5a16c3565f38038fa8dc0239be9d4edf26459fe
data/README.md CHANGED
@@ -29,7 +29,15 @@ and in application.css file
29
29
 
30
30
  ## Usage
31
31
 
32
- rails-fort will automatically detect all `<input>` inside form
32
+ Place `<div class="form">` before your form.All `<input>` inside form will be taken in account.
33
+
34
+ Example
35
+
36
+ <div class="form">
37
+ <form method="post">
38
+ <input type="text">
39
+ </form>
40
+ </div>
33
41
 
34
42
  Certain fields:
35
43
 
@@ -1,7 +1,6 @@
1
1
  //= require rails.fort
2
2
 
3
3
  $(document).ready(function(){
4
- $("form").wrap( "<div class='form'></div>" );
5
4
  <% path_to_file = "#{Rails.root}/config/fort.yml" %>
6
5
  <% if File.exist?(path_to_file) %>
7
6
  fortconfig = <%= JSON.dump(YAML.load_file(path_to_file)) %>;
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Fort
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-fort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ethiraj