Browse files

defined :rows => 10, :cols => 20, :maxlength => 10 options in example…

… to show how those HTML atributes can be integrated into the form, removed :size, as it's de same as :cols and more ambiguous.
  • Loading branch information...
1 parent af484b3 commit a9889c561d524be0f498b32458655532e73201d7 @victorbstan victorbstan committed with Feb 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.textile
View
4 README.textile
@@ -234,8 +234,8 @@ Customize HTML attributes for any input using the @:input_html@ option. Typicall
<pre>
<% semantic_form_for @post do |form| %>
- <%= form.input :title, :input_html => { :size => 60 } %>
- <%= form.input :body, :input_html => { :class => 'autogrow' } %>
+ <%= form.input :title, :input_html => { :cols => 10 } %>
+ <%= form.input :body, :input_html => { :class => 'autogrow', :rows => 10, :cols => 20, :maxlength => 10 } %>
<%= form.input :created_at, :input_html => { :disabled => true } %>
<%= form.buttons %>
<% end %>

0 comments on commit a9889c5

Please sign in to comment.