Skip to content
Browse files

Added a little sample of :input_html => { :readonly => true } which I…

… had no idea would work until I got really frustrated, skimmed the HTML spec and tried it. Then it worked.
  • Loading branch information...
1 parent 5641f43 commit c7b984947f036a8c0174c8387dff696f674affef @ZachBeta ZachBeta committed Jan 10, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.textile
View
1 README.textile
@@ -256,6 +256,7 @@ Customize HTML attributes for any input using the @:input_html@ option. Typicall
<%= f.input :title, :input_html => { :size => 10 } %>
<%= f.input :body, :input_html => { :class => 'autogrow', :rows => 10, :cols => 20, :maxlength => 10 } %>
<%= f.input :created_at, :input_html => { :disabled => true } %>
+ <%= f.input :updated_at, :input_html => { :readonly => true } %>
<% end %>
<%= f.buttons %>
<% end %>

0 comments on commit c7b9849

Please sign in to comment.
Something went wrong with that request. Please try again.