merb-helpers 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/merb-helpers/form/helpers.rb +5 -5
- data/spec/merb.main.pid +1 -1
- data/spec/merb_test.log +21 -0
- metadata +3 -3
@@ -418,7 +418,7 @@ module Merb::Helpers::Form
|
|
418
418
|
# Provides a HTML formatted display of resource errors in an unordered list with a h2 form submission error
|
419
419
|
#
|
420
420
|
# ==== Parameters
|
421
|
-
# obj<
|
421
|
+
# obj<Object>:: Model or Resource
|
422
422
|
# error_class<String>:: CSS class to use for error container
|
423
423
|
# build_li<String>:: Custom li tag to wrap each error in
|
424
424
|
# header<String>:: Custom header text for the error container
|
@@ -428,10 +428,10 @@ module Merb::Helpers::Form
|
|
428
428
|
# String:: HTML
|
429
429
|
#
|
430
430
|
# ==== Examples
|
431
|
-
# <%= error_messages_for
|
432
|
-
# <%= error_messages_for
|
433
|
-
# <%= error_messages_for
|
434
|
-
# <%= error_messages_for
|
431
|
+
# <%= error_messages_for @person %>
|
432
|
+
# <%= error_messages_for @person {|errors| "You can has probs nao: #{errors.size} of em!"}
|
433
|
+
# <%= error_messages_for @person, lambda{|error| "<li class='aieeee'>#{error.join(' ')}"} %>
|
434
|
+
# <%= error_messages_for @person, nil, 'bad_mojo' %>
|
435
435
|
def error_messages_for(obj = nil, opts = {})
|
436
436
|
current_form_context.error_messages_for(obj, opts[:error_class] || "error",
|
437
437
|
opts[:build_li] || "<li>%s</li>",
|
data/spec/merb.main.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
10407
|
data/spec/merb_test.log
CHANGED
@@ -19,3 +19,24 @@
|
|
19
19
|
~ {:after_filters_time=>5.0e-06, :action_time=>0.000454, :before_filters_time=>4.0e-06, :dispatch_time=>0.000651}
|
20
20
|
~
|
21
21
|
|
22
|
+
~ Compiling routes...
|
23
|
+
~ Started request handling: Tue Nov 25 09:37:25 -0800 2008
|
24
|
+
~ Params: {"format"=>nil, "action"=>"tag_with_content", "id"=>nil, "controller"=>"tag_helper"}
|
25
|
+
~ {:before_filters_time=>1.6e-05, :dispatch_time=>0.000863, :after_filters_time=>1.6e-05, :action_time=>0.000597}
|
26
|
+
~
|
27
|
+
|
28
|
+
~ Started request handling: Tue Nov 25 09:37:25 -0800 2008
|
29
|
+
~ Params: {"format"=>nil, "action"=>"tag_with_content_in_the_block", "id"=>nil, "controller"=>"tag_helper"}
|
30
|
+
~ {:before_filters_time=>7.0e-06, :dispatch_time=>0.000684, :after_filters_time=>6.0e-06, :action_time=>0.000444}
|
31
|
+
~
|
32
|
+
|
33
|
+
~ Started request handling: Tue Nov 25 09:37:25 -0800 2008
|
34
|
+
~ Params: {"format"=>nil, "action"=>"tag_with_attributes", "id"=>nil, "controller"=>"tag_helper"}
|
35
|
+
~ {:before_filters_time=>5.0e-06, :dispatch_time=>0.000522, :after_filters_time=>7.0e-06, :action_time=>0.000337}
|
36
|
+
~
|
37
|
+
|
38
|
+
~ Started request handling: Tue Nov 25 09:37:25 -0800 2008
|
39
|
+
~ Params: {"format"=>nil, "action"=>"nested_tags", "id"=>nil, "controller"=>"tag_helper"}
|
40
|
+
~ {:before_filters_time=>6.0e-06, :dispatch_time=>0.000631, :after_filters_time=>6.0e-06, :action_time=>0.000445}
|
41
|
+
~
|
42
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merb-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael D. Ivey
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-11-
|
12
|
+
date: 2008-11-25 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.0.
|
23
|
+
version: 1.0.3
|
24
24
|
version:
|
25
25
|
description: Helper support for Merb
|
26
26
|
email: ivey@gweezlebur.com
|