hey, i want a table the the info of the employees from the array
anyone got a solution for this??
row = 1
table = PDF::SimpleTable.new
table.data = [
#time entries
for time_entry in @time_entries
{ "row" =>row, "name" =>
time_entry.employee.last_name + " " +
time_entry.employee.first_name, "race" => "Human" },
row = row + 1
end
]
table.column_order = [ "row", "name", "race" ]
table.render_on(pdf)