search for: print_grid_layout

Displaying 1 result from an estimated 1 matches for "print_grid_layout".

2006 Mar 15
0
Grid making helper in view
Hello, I apologize if this has been asked before. I am interested in creating a helper for my view that generates a grid-style table. Here''s what I have in application_helper.rb: def print_grid_layout(items, table_class, num_columns) print %Q{<table class=''#{table_class}'' cellpadding=''0'' cellspacing=''0''>\n} rows = Array.new # creates an array of arrays containing num_column items num_columns.times do rows <<...