formula 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +15 -9
  2. data/lib/formula/version.rb +1 -1
  3. metadata +3 -3
data/README.rdoc CHANGED
@@ -19,21 +19,27 @@ Formula is a Rails form generator that generates simple clean markup. The projec
19
19
  <% end %>
20
20
 
21
21
  <% formula_form_for @company do |f|
22
- <%= f.input :url, :class => 'grid-04' %>
23
- <%= f.input :phone, :class => 'grid-04' %>
24
- <%= f.input :email, :class => 'grid-04' %>
22
+ <%= f.input :url, :container => { :class => 'grid-04' } %>
23
+ <%= f.input :phone, :container => { :class => 'grid-04' } %>
24
+ <%= f.input :email, :container => { :class => 'grid-04' } %>
25
25
  <% end %>
26
26
 
27
27
  <% formula_form_for @user do |f| %>
28
- <%= f.input :email, :label => "Email:", :class => 'grid-06 %>
29
- <%= f.input :password, :label => "Password:", :class => 'grid-06' %>
28
+ <%= f.input :email, :label => "Email:" %>
29
+ <%= f.input :password, :label => "Password:" %>
30
30
  <% formula_fields_for @user.payment do |payment_f| %>
31
- <%= f.input :credit_card_number, :label => 'Number:', :class => 'grid-08' %>
32
- <%= f.input :credit_card_verification, :label => 'CVV:', :class => 'grid-02' %>
33
- <%= f.input :credit_card_expiration, :label => 'Expiration:', :class => 'grid-02' %>
31
+ <%= payment_f.input :credit_card_number, :label => 'Number:' %>
32
+ <%= payment_f.input :credit_card_expiration, :label => 'Expiration:' %>
34
33
  <% end %>
35
34
  <% end %>
36
-
35
+
36
+ <% formula_form_for @user do |f| %>
37
+ <%= f.block :favourite %>
38
+ <% @favourites.each do |favourite| %>
39
+ ...
40
+ <% end %>
41
+ <% end %>
42
+
37
43
  == Copyright
38
44
 
39
45
  Copyright (c) 2010 Kevin Sylvestre. See LICENSE for details.
@@ -1,3 +1,3 @@
1
1
  module Formula
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kevin Sylvestre
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-21 00:00:00 -05:00
17
+ date: 2010-12-22 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20