title: unexpected kEND
body: <pre><code>  1 &lt;p&gt;
    2   &lt;b&gt;Name:&lt;/b&gt;                                 
    3   &lt;%=h @findlist.name %&gt;                       
    4 &lt;/p&gt;
    5 
    6 &lt;p&gt;
    7   &lt;b&gt;Cached slug:&lt;/b&gt;                          
    8   &lt;%=h @findlist.cached_slug %&gt;                
    9 &lt;/p&gt;
   10     
   11 &lt;h4&gt;Products&lt;/h4&gt;                              
   12 &lt;% @findlist.products.each do |product| %&gt;    
   13 &lt;p&gt;
   14   &lt;b&gt;Product:&lt;/b&gt;
   15   &lt;%=h image_tag(product.photo.url) %&gt;         
   16 &lt;/p&gt;
   17 &lt;% end %&gt;                                     
   18                                                
   19 &lt;%= link_to 'Edit', edit_user_findlist_path(@user, @findlist) %&gt; |
   20 &lt;%= link_to 'Back', findlists_path %&gt;
  </code></pre>
  
  <p>I currently have the above code but it gives me the "unexpected kEND, expecting $end" at around line #12. I have been testing and testing the code and I can't see the syntax error. I am a ruby and rails newbie and I probably just couldn't see it.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p><strong>UPDATE:</strong> removing lines 12 to 17 removes the syntax error</p>
  
  <p>Controller code:</p>
  
  <pre><code>  7   def show
    8     @findlist = @user.findlists.all
    9   end
  </code></pre>
  
  <p>I am using rails 2.3.11</p>