From 6c5715d1e763c6d3b4c0e0a69ff51423f2b554de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 1 Feb 2012 10:59:02 -0200 Subject: [PATCH] Prefer the optional syntax --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d6f73f47..381bb010 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ end **SimpleForm** also allows you to use optional elements. For instance, let's suppose you want to use hints or placeholders, but you don't want them to be generated automatically. You can set their -default values to `false` or use the `optional` method: +default values to `false` or use the `optional` method. Is preferible to use the `optional` syntax: ```ruby config.wrappers :placeholder => false do |b| @@ -163,8 +163,8 @@ config.wrappers :placeholder => false do |b| end ``` -By setting it to `false`, a placeholder will only be generated when `:placeholder => true` is -explicitly used. The same for hint. +By setting it as `optional`, a hint will only be generated when `:hint => true` is explicitly used. +The same for placehold. ## Usage