I\'m trying a helper method that will output a list of items, to be called like so:
foo_list( [\'item_one\', link_to( \'item_two\', \'#\' ) ... ] )
>
I couldn't get that work any better.
If you were using HAML already, you could write your helper like this:
def foo_list(items)
haml_tag :ul do
items.each do |item|
haml_tag :li, item
end
end
end
Usage from view:
- foo_list(["item_one", link_to("item_two", "#"), ... ])
Output would be correctly intended.