Skip to content
This repository
Browse code

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...
commit c7b984947f036a8c0174c8387dff696f674affef 1 parent 5641f43
Zach Morek ZachBeta authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  README.textile
1  README.textile
Source Rendered
@@ -256,6 +256,7 @@ Customize HTML attributes for any input using the @:input_html@ option. Typicall
256 256 <%= f.input :title, :input_html => { :size => 10 } %>
257 257 <%= f.input :body, :input_html => { :class => 'autogrow', :rows => 10, :cols => 20, :maxlength => 10 } %>
258 258 <%= f.input :created_at, :input_html => { :disabled => true } %>
  259 + <%= f.input :updated_at, :input_html => { :readonly => true } %>
259 260 <% end %>
260 261 <%= f.buttons %>
261 262 <% end %>

0 comments on commit c7b9849

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