From 0c13441a517a923bbf35e6a77eab1e6bebdc8fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 30 Jan 2012 14:29:29 -0200 Subject: [PATCH] Reinforce that this is a Form component --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e4bde96e..4979e771 100644 --- a/README.md +++ b/README.md @@ -86,9 +86,9 @@ You can create new _Form components_ using the wrappers API as in the following config.wrappers do |b| b.use :placeholder b.use :label_input - b.use :tag => :div, :class => 'separator' do |ba| - ba.use :hint, :tag => :span, :class => :hint - ba.use :error, :tag => :span, :class => :error + b.use :tag => :div, :class => 'separator' do |component| + component.use :hint, :tag => :span, :class => :hint + component.use :error, :tag => :span, :class => :error end end ``` @@ -101,9 +101,9 @@ If you want to customize the custon _Form components_ on demand you can give it config.wrappers do |b| b.use :placeholder b.use :label_input - b.use :my_wrapper, :tag => :div, :class => 'separator' do |ba| - ba.use :hint, :tag => :span, :class => :hint - ba.use :error, :tag => :span, :class => :error + b.use :my_wrapper, :tag => :div, :class => 'separator' do |component| + component.use :hint, :tag => :span, :class => :hint + component.use :error, :tag => :span, :class => :error end end ``` @@ -153,9 +153,9 @@ default values to `false` or use the `optional` method: config.wrappers :placeholder => false do |b| b.use :placeholder b.use :label_input - b.use :tag => :div, :class => 'separator' do |ba| - ba.optional :hint, :tag => :span, :class => :hint - ba.use :error, :tag => :span, :class => :error + b.use :tag => :div, :class => 'separator' do |component| + component.optional :hint, :tag => :span, :class => :hint + component.use :error, :tag => :span, :class => :error end end ```