Displaying 1 result from an estimated 1 matches for "tasks_tabl".
Did you mean:
tasks_table
2007 Nov 26
0
Best Way to Write Helpers Using Markaby?
...definitely do not
understand the "Merb way").
At first I tried just putting the `tag_name do` blocks right in my
helpers, but this didn''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 eac...