Displaying 1 result from an estimated 1 matches for "_todo_list".
Did you mean:
todo_list
2006 Jul 05
3
Calling render_to_string from a view
I''m playing around with a list of todos, which I want to render as
<ul>''s that can nest to an arbitrary level, so I wrote this as a helper
method:
def print_todo(t)
str = "<ul>\n\t<li>"
str += render_to_string(:partial => ''todo'', :object => t) + "\n"
t.children.each { |c| str +=