Permalink
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 d72a2cd commit 31c442f7371004ed0b9a35a0fa35dc19dd6ddeb8 @victorbstan victorbstan committed with Feb 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.textile
View
@@ -256,8 +256,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 31c442f

Please sign in to comment.