From 208181cfc1835bf2ce62dccdda33317e7206f02c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Tue, 19 Apr 2011 15:57:46 -0300 Subject: [PATCH] Add input_field documentation to README --- README.rdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rdoc b/README.rdoc index 7b413f03..553e218e 100644 --- a/README.rdoc +++ b/README.rdoc @@ -127,17 +127,17 @@ SimpleForm accepts same options as their corresponding input type helper in Rail <%= f.button :submit %> <% end %> -SimpleForm also allows you using label, hint and error helpers it provides: +SimpleForm also allows you using label, hint, input_field and error helpers it provides: <%= simple_form_for @user do |f| %> <%= f.label :username %> - <%= f.text_field :username %> + <%= f.input_field :username %> <%= f.error :username, :id => 'user_name_error' %> <%= f.hint 'No special characters, please!' %> <%= f.submit 'Save' %> <% end %> -Any extra option passed to label, hint or error will be rendered as html option. +Any extra option passed to label, hint, input_field or error will be rendered as html option. === Collections