padrino-form-errors 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -9,11 +9,19 @@ Install plugin via rubygems:
9
9
 
10
10
  gem install padrino-form-errors
11
11
 
12
- And run generator:
12
+ And register plugin in your +app.rb+ file:
13
+
14
+ class MyApp < Padrino::Application
15
+ register Padrino::Helpers
16
+ register Padrino::Mailer
17
+ register Padrino::FormErrors
18
+ # ...
19
+
20
+ Now you can run generator:
13
21
 
14
22
  padrino-gen form_errors
15
23
 
16
- In your +app/views/shared+ you'll find two new partials:
24
+ Now in +app/views/shared+ you'll two new partials should be present:
17
25
 
18
26
  +_error_messages.html.*+ :: template for error_messages_for
19
27
  +_error_message.html.*+ :: template for error_message_on
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.5
@@ -1,5 +1,5 @@
1
1
  <div class="errors-explanation">
2
- <h3><%= object.class.to_s.underscore %> couldn not be saved</h3>
2
+ <h3><%= object.class.human_name %> couldn not be saved</h3>
3
3
  <ul>
4
4
  <%- object.errors.full_messages.each do |msg| %>
5
5
  <li><%= msg %></li>
@@ -1,5 +1,5 @@
1
1
  .errors-explanation
2
- %h3 #{object.class.to_s.underscore} couldn not be saved
2
+ %h3 #{object.class.human_name} couldn not be saved
3
3
  %ul
4
4
  - object.errors.full_messages.each do |msg|
5
5
  %li= msg
@@ -0,0 +1,53 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{padrino-form-errors}
8
+ s.version = "0.0.5"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Kriss 'nu7hatch' Kowalik"]
12
+ s.date = %q{2010-09-06}
13
+ s.description = %q{Validation errors explanation done in good way for Padrino framework.}
14
+ s.email = %q{kriss.kowalik@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".gitignore",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "lib/padrino-form-errors.rb",
26
+ "lib/padrino-form-errors/generators/defaults.rb",
27
+ "lib/padrino-form-errors/generators/templates/erb/_error_message.erb.tt",
28
+ "lib/padrino-form-errors/generators/templates/erb/_error_messages.erb.tt",
29
+ "lib/padrino-form-errors/generators/templates/haml/_error_message.haml.tt",
30
+ "lib/padrino-form-errors/generators/templates/haml/_error_messages.haml.tt",
31
+ "lib/padrino-form-errors/helpers/form_helpers.rb",
32
+ "padrino-form-errors.gemspec"
33
+ ]
34
+ s.homepage = %q{http://github.com/nu7hatch/padrino-form-errors}
35
+ s.rdoc_options = ["--charset=UTF-8"]
36
+ s.require_paths = ["lib"]
37
+ s.rubygems_version = %q{1.3.7}
38
+ s.summary = %q{Form validation errors helper for Padrino}
39
+
40
+ if s.respond_to? :specification_version then
41
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
42
+ s.specification_version = 3
43
+
44
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
+ s.add_runtime_dependency(%q<padrino>, [">= 0.9.14"])
46
+ else
47
+ s.add_dependency(%q<padrino>, [">= 0.9.14"])
48
+ end
49
+ else
50
+ s.add_dependency(%q<padrino>, [">= 0.9.14"])
51
+ end
52
+ end
53
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-form-errors
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kriss 'nu7hatch' Kowalik
@@ -56,6 +56,7 @@ files:
56
56
  - lib/padrino-form-errors/generators/templates/haml/_error_message.haml.tt
57
57
  - lib/padrino-form-errors/generators/templates/haml/_error_messages.haml.tt
58
58
  - lib/padrino-form-errors/helpers/form_helpers.rb
59
+ - padrino-form-errors.gemspec
59
60
  has_rdoc: true
60
61
  homepage: http://github.com/nu7hatch/padrino-form-errors
61
62
  licenses: []