erroneous 0.0.1 → 0.0.2
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.rdoc +4 -28
- data/lib/erroneous/version.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,38 +1,14 @@
|
|
1
|
-
=
|
1
|
+
= Erroneous
|
2
2
|
|
3
|
-
|
3
|
+
Erroneous is a Rails view generator that creates simple markup for inline errors.
|
4
4
|
|
5
5
|
== Installation
|
6
6
|
|
7
|
-
gem install
|
7
|
+
gem install erroneous
|
8
8
|
|
9
9
|
== Examples
|
10
10
|
|
11
|
-
|
12
|
-
<%= f.input :email %>
|
13
|
-
<%= f.input :password %>
|
14
|
-
<% end %>
|
15
|
-
|
16
|
-
<% formula_form_for @user do |f| %>
|
17
|
-
<%= f.input :email, :label => "Email:", :hint => "We promise never to bother you." %>
|
18
|
-
<%= f.input :password, :label => "Password:", :hint => "Must be at least six characters." %>
|
19
|
-
<% end %>
|
20
|
-
|
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' %>
|
25
|
-
<% end %>
|
26
|
-
|
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' %>
|
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' %>
|
34
|
-
<% end %>
|
35
|
-
<% end %>
|
11
|
+
<%= errors @user, :name %>
|
36
12
|
|
37
13
|
== Copyright
|
38
14
|
|
data/lib/erroneous/version.rb
CHANGED