Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.23 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. What's the efficient way to implement this dynamic table size in the VIEW (haml)
  2. str=['true', 'false', 'true', 'true', 'false']
  3.        
  4. %table
  5.   %tbody
  6.     -str.each_with_index do |s, i|
  7.       -if s == 'true'
  8.         %td=array[i]