I am using Rails 2.1 to output tables from a database. But the output includes lots of extra lines and tabs. I am using a while loop with lots of nested if statements. I am also wrapping all of my non-output lines in <%- code -%>. Any idea what might be happening and a solution? Thanks,
NOTE: I keep attempting to paste in the code, and while the preview looks good, upon save, the formatting is unreadable....
<%- while row_no < total_rows -%>
<tr class="<%=h @row_styles[row_no] %>">
<%- @cells.each do |ce| -%>
<%- if row_no == ce.row_id -%>
<%- if @col_styles[ce.column_id] == '' -%>
<%- if ce.additional_info.blank? -%>
<td><%= ce.content %></td>