title: Can I do a conditional in the rails form builder
body: <p>Ok so i have this test_field</p>
  
  <pre><code>   = f.text_field :profile_count, :readonly =&gt; true
  </code></pre>
  
  <p>I only need the readonly to be there is the user is not an admin?</p>
  
  <p>so I can do this</p>
  
  <pre><code>if current_user.admin?
     = f.text_field :profile_count
  else
     = f.text_field :profile_count, :readonly =&gt; true
  </code></pre>
  
  <p>but is there a way to make it more compact or more rails like also readonly is not 100% ideal either because users can manipulate the dom via firebug or something..any suggestions</p>