Displaying 1 result from an estimated 1 matches for "task_row".
Did you mean:
last_row
2007 Nov 26
0
Best Way to Write Helpers Using Markaby?
...;t work out. What I''ve found does work is
wrapping this code in `Markaby::Builder.new.html do` blocks, such as
this:
def tasks_table tasks
Markaby::Builder.new.html do
p "update tasks below"
table do
tasks.each do |task|
task_row(task)
end
end
end
end
While this works, I''m pretty sure that making a new builder instance
for each helper call.
What''s the "right" way?
Thanks.
--
Ethan Winn
ethan at echoditto.com
-------------- next part --------------
An HTML...