Try saving the output to a variable an returning it like this:
def menu( menu )
tag = ""
if !menu[key]['action'].nil? then
tag += content_tag( :li, link_to( key, menu[key]['action'] ) )
Andy Watts wrote:
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks