title: Rails For Loop View
body: <p>I have the following code:</p>
  
  <pre><code>&lt;tbody&gt;
     &lt;%= Item.each do |item|=%&gt;
     &lt;tr&gt;
        &lt;th&gt;&lt;%= item.rev =%&gt;&lt;/th&gt;      &lt;=========
        &lt;th&gt;&lt;%= item.name =%&gt;&lt;/th&gt;
     &lt;/tr&gt;
     &lt;%= end =%&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>However I am getting a syntax error on the inidcated line. There is data in the database(Test case). No idea what I am doing wrong.</p>