From: Luiz Vitor Martinez Cardoso Date: 2008-08-17T23:13:01+09:00 Subject: Re: writing if statement in one line with elsif condition ------=_Part_111804_6861006.1218982572622 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Philp, I really know! Thanks, On Sun, Aug 17, 2008 at 10:11 AM, Phlip wrote: > @id =3D case when @recipes.length =3D=3D i + 1: 0; when i.remainder(2) = =3D=3D 1: 1; >> else 2 end >> >> Although I admit that I'd rather have it on several lines >> > > I suspect the original posted might not know you can write a multi-line > <% erb %> block! Some sample code puts a different <% %> on each line, > like the original post did... > > > --=20 Regards, Luiz Vitor Martinez Cardoso cel.: (11) 8187-8662 blog: rubz.org engineer student at maua.br "Posso nunca chegar a ser o melhor engenheiro do mundo, mas tenha certeza d= e que eu vou lutar com todas as minhas for=E7as para ser o melhor engenheiro = que eu puder ser" ------=_Part_111804_6861006.1218982572622--