booter 0.2.2 → 0.2.3

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/README.md CHANGED
@@ -2,8 +2,26 @@
2
2
 
3
3
  Twitter bootstrap framework for Rails.
4
4
 
5
- # Changelog
5
+ ## Usage
6
6
 
7
- ## Booter 0.2.2 (March 18, 2012)
7
+ Add bootstrap.css to your application.css and bootstrap.js to your application.js file.
8
8
 
9
- * First release, use bootstrap 2.0.2
9
+ Use <tt>nice_form_for</tt> helper method to draw bootstrap forms:
10
+
11
+ ``` haml
12
+ = nice_form_for @user do
13
+ = f.email_field :email
14
+ = f.password_field :password
15
+ = f.check_box :remember_me
16
+ = f.submit "Sign in"
17
+ ```
18
+
19
+ ## Changelog
20
+
21
+ ### Booter 0.2.3 (March 19, 2012)
22
+
23
+ * Add select field support
24
+
25
+ ### Booter 0.2.2 (March 18, 2012)
26
+
27
+ * First public release
@@ -35,6 +35,12 @@ class BootstrapFormBuilder < ActionView::Helpers::FormBuilder
35
35
  end
36
36
  end
37
37
 
38
+ def select(name, choices, options = {})
39
+ wrapper name do
40
+ super
41
+ end
42
+ end
43
+
38
44
  def check_box(name)
39
45
  wrapper name do
40
46
  content_tag :label, class: 'checkbox' do
@@ -1,3 +1,3 @@
1
1
  module Booter
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-18 00:00:00.000000000 Z
12
+ date: 2012-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &83935090 !ruby/object:Gem::Requirement
16
+ requirement: &76893000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '3.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *83935090
24
+ version_requirements: *76893000
25
25
  description: Twitter bootstrap for Rails
26
26
  email:
27
27
  - vakhov@gmail.com
@@ -59,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  segments:
61
61
  - 0
62
- hash: -742628685
62
+ hash: 976728861
63
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  segments:
70
70
  - 0
71
- hash: -742628685
71
+ hash: 976728861
72
72
  requirements: []
73
73
  rubyforge_project:
74
74
  rubygems_version: 1.8.17