mongoid_form 0.0.1 → 0.0.1.1

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.
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .DS_Store
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # MongoidForm
1
+ # MongoidForm ``*alpha`` [![Gem Version](https://badge.fury.io/rb/mongoid_form.png)](http://badge.fury.io/rb/mongoid_form)
2
2
 
3
3
  It makes your life easy when you develop forms and your app use [mongoid](https://github.com/mongoid/mongoid).
4
4
 
@@ -52,6 +52,27 @@ Run installer for generate sample config:
52
52
  = f.input :visible, :checkbox # pass type of field
53
53
  ```
54
54
 
55
+ ## Config
56
+
57
+ All options for this time:
58
+
59
+ ``` ruby
60
+ MongoidForm.setup do |config|
61
+
62
+ config.wrapper :default do
63
+ alert_error_wrapper :div, class: 'alert alert-error'
64
+ main_error_i18n_key 'errors.form.error_notification'
65
+ group_wrapper :div, class: 'control-group'
66
+ group_error_class 'error'
67
+ label_options class: 'control-label'
68
+ add_if_required :abbr, '*', title: I18n::t('required')
69
+ error_block :span, class: 'help-inline'
70
+ input_wrapper :div, class: 'controls'
71
+ end
72
+
73
+ end
74
+ ```
75
+
55
76
  ### Types of fields supported:
56
77
 
57
78
  * ```:text```
@@ -1,3 +1,3 @@
1
1
  module MongoidForm
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.1.1"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["exreanimator@gmail.com"]
11
11
  spec.description = %q{It makes your life easy when you develop forms and your app use mongoid}
12
12
  spec.summary = %q{Form builder for apps which use mongoid}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/ExReanimator/mongoid_form"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -128,7 +128,7 @@ files:
128
128
  - lib/mongoid_form/version.rb
129
129
  - lib/mongoid_form/wrapper_config.rb
130
130
  - mongoid_form.gemspec
131
- homepage: ''
131
+ homepage: https://github.com/ExReanimator/mongoid_form
132
132
  licenses:
133
133
  - MIT
134
134
  post_install_message: