From: David Garton Date: 2007-06-19T20:39:00+09:00 Subject: Re: An error I can't find --0-2110648216-1182252741=:90838 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit This is just what I found, maybe it'll help: http://www.ruby-doc.org/docs/UsersGuide/rg/control.html l- ooking at their example it seems the syntax should be: case when end I guess that's why it's saying it's expecting "when". Zouplaz wrote: Hello, there's certainly a monstrous error I don't see in : <% for i in @news %> <% if dern_cat != i.categorie %> <% case i.categorie %> <% end %> <% end %> <% end %> I've removed all the code I could and don't understand why the case i.categorie produce a syntax error, unexpected tIDENTIFIER, expecting kWHEN What is that syntax error ? Thank you --------------------------------- Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. --0-2110648216-1182252741=:90838--