title: How to set a field read only in rails 3.1.0 views?
body: <p>My question is how to set a field in rails form read only. The following is a selection box in quotes controller. Users are not allowed to change the selection.</p>
  
  <pre><code>  &lt;% @quote.test_items.each do |t| %&gt; 
      &lt;%= f.association :test_items, :label =&gt; false, :selected =&gt; t.id %&gt;
    &lt;% end %&gt;
  </code></pre>
  
  <p>The app uses simple_form. Thanks so much.</p>