title: How much code in a rails view is ok?
body: <p>I know that it is best to keep code out of the presentation layer.  But, I am wondering how much is considered "acceptable".  For example I populate an html select box with this line of code. </p>
  
  <pre><code>CodesecureProject.find(:all,:order =&gt; 'name').collect {|project| [project.name, project.id] }
  </code></pre>
  
  <p>Right now I have this line of code embedded in the form.  What I am wondering if the community thinks if this is to much code and it should be first stored in an instance variable on the controller then the variable used in the form.</p>