erroneous 0.0.2 → 0.0.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.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Erroneous
2
2
 
3
- Erroneous is a Rails view generator that creates simple markup for inline errors.
3
+ Erroneous is a Ruby on Rails view helper that creates simple markup for inline errors.
4
4
 
5
5
  == Installation
6
6
 
@@ -9,6 +9,13 @@ Erroneous is a Rails view generator that creates simple markup for inline errors
9
9
  == Examples
10
10
 
11
11
  <%= errors @user, :name %>
12
+ <div class="errors">can't be blank</div>
13
+
14
+ <%= errors @user, :phone %>
15
+ <div class="errors">can't be blank and should look like a phone number</div>
16
+
17
+ <%= errors @user, :email %>
18
+ <div class="errors">can't be blank and should look like an email address</div>
12
19
 
13
20
  == Copyright
14
21
 
@@ -1,3 +1,3 @@
1
1
  module Erroneous
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/erroneous.rb CHANGED
@@ -3,7 +3,7 @@ module Erroneous
3
3
  require 'erroneous/railtie' if defined?(Rails)
4
4
 
5
5
  mattr_accessor :error_class
6
- @@error_class = 'errors'
6
+ @@error_class = 'error'
7
7
 
8
8
  mattr_accessor :error_tag
9
9
  @@error_tag = :div
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
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-25 00:00:00 -05:00
17
+ date: 2011-01-21 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20