title: How to disable all form_for input fields in Ruby on Rails app?
body: <p>I am trying to DRY up my Rails application a bit, so I would like to render a form in my <code>show</code> view but <em>disable</em> all input fields.</p>
  
  <pre><code>// show.html.erb
  
  &lt;%= form_for(@project) do |f| %&gt;
    &lt;%= render 'fields', :f =&gt; f %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>What would be the best way to do that?</p>
  
  <p>Thanks for any help.</p>