formula 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1 +1,3 @@
1
- source 'http://rubygems.org'
1
+ source 'http://rubygems.org'
2
+
3
+ gemspec
data/README.rdoc CHANGED
@@ -15,20 +15,20 @@ The gem is tested with Ruby 1.9.2 and Rails 3.0.7 but may well work with other v
15
15
  <% formula_form_for @user do |f| %>
16
16
  <%= f.input :email %>
17
17
  <%= f.input :password %>
18
- <%= f.button :submit %>
18
+ <%= f.button 'Save' } %>
19
19
  <% end %>
20
20
 
21
21
  <% formula_form_for @user do |f| %>
22
22
  <%= f.input :email, label: "Email:", hint: "We promise never to bother you." %>
23
23
  <%= f.input :password, label: "Password:", hint: "Must be at least six characters." %>
24
- <%= f.button :submit %>
24
+ <%= f.button 'Save' %>
25
25
  <% end %>
26
26
 
27
27
  <% formula_form_for @company do |f|
28
28
  <%= f.input :url, container: { class: 'grid-04' }, input: { class: 'fill' } %>
29
29
  <%= f.input :phone, container: { class: 'grid-04' }, input: { class: 'fill' } %>
30
30
  <%= f.input :email, container: { class: 'grid-04' }, input: { class: 'fill' } %>
31
- <%= f.button :submit %>
31
+ <%= f.button 'Save', button: { class: 'fancy' } %>
32
32
  <% end %>
33
33
 
34
34
  <% formula_form_for @user do |f| %>
@@ -39,7 +39,7 @@ The gem is tested with Ruby 1.9.2 and Rails 3.0.7 but may well work with other v
39
39
  <%= payment_f.input :credit_card_number, label: 'Number:' %>
40
40
  <%= payment_f.input :credit_card_expiration, label: 'Expiration:' %>
41
41
  <% end %>
42
- <%= f.button :submit %>
42
+ <%= f.button 'Save', button: { class: 'fancy' } %>
43
43
  <% end %>
44
44
 
45
45
  <% formula_form_for @user do |f| %>
@@ -48,7 +48,7 @@ The gem is tested with Ruby 1.9.2 and Rails 3.0.7 but may well work with other v
48
48
  ...
49
49
  <% end %>
50
50
  <% end %>
51
- <%= f.button :submit %>
51
+ <%= f.button 'Save', button: { class: 'fancy' } %>
52
52
  <% end %>
53
53
 
54
54
  == Copyright
data/lib/formula.rb CHANGED
@@ -188,6 +188,7 @@ module Formula
188
188
  when :string then text_field method, options[:input]
189
189
  when :password then password_field method, options[:input]
190
190
  when :hidden then hidden_field method, options[:input]
191
+ when :boolean then check_box method, options[:input]
191
192
  when :url then url_field method, options[:input]
192
193
  when :email then email_field method, options[:input]
193
194
  when :phone then phone_field method, options[:input]
@@ -1,3 +1,3 @@
1
1
  module Formula
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: formula
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.7
5
+ version: 0.2.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kevin Sylvestre
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-25 00:00:00 Z
13
+ date: 2011-06-28 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: Formula is a Rails form generator that generates simple clean markup. The project aims to let users create semantically beautiful forms without introducing too much syntax. The goal is to make integrating advanced layout systems (such as grid systems) as simple as possible.