control_group 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc ADDED
@@ -0,0 +1,27 @@
1
+ == Control Group
2
+ Gem adds a method that creates the structure of the elements for
3
+ each field that is displayed correctly when using Bootstrap.
4
+
5
+ == Installation
6
+ To install use:
7
+
8
+ gem install control_group
9
+
10
+ == Usage
11
+
12
+ <%= control_group f, :field_name, :field_type, {<field_options_hash>}%>
13
+
14
+ == Example
15
+
16
+ <%= form_for "feedback", :html => { :class => "form-horizontal" } do |f| %>
17
+ <%= control_group f, :email, :text_field %>
18
+ <%= control_group f, :name, :text_field %>
19
+ <%= control_group f, :message, :text_area %>
20
+
21
+ == Authors
22
+
23
+ MyStand Company
24
+
25
+ http://mystand.ru
26
+
27
+
@@ -1,4 +1,4 @@
1
- require "view_helpers"
1
+ require "control_group/view_helpers"
2
2
 
3
3
  module ControlGroup
4
4
 
@@ -1,3 +1,3 @@
1
1
  module ControlGroup
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/control_group.rb CHANGED
@@ -1,8 +1,5 @@
1
1
  require "control_group/version"
2
- require 'control_group/railtie' if defined?(Rails)
2
+ require "control_group/railtie"
3
3
 
4
4
  module ControlGroup
5
-
6
-
7
-
8
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: control_group
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -20,6 +20,7 @@ extra_rdoc_files: []
20
20
  files:
21
21
  - .gitignore
22
22
  - Gemfile
23
+ - README.rdoc
23
24
  - Rakefile
24
25
  - control_group.gemspec
25
26
  - lib/control_group.rb