On Tuesday, June 7, 2011 6:26:16 AM UTC-4, Adel Mediouni wrote: > > <% i = i +1 %> > <% if i.modulo(2) == 0 %> > <% color = '#E6E6E6' %> > <% else %> > <% color = '#D8D8D8' %> > <% end %> > <tr align=center bgcolor = <%= color %> > > > Not related to your problem, but there's an easier way to do this part of your code using a helper:
<tr align="center" bgcolor="<%= cycle('#D8D8D8', '#E6E6E6') %>" > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/bUhfRmxyWERzcVlK. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.