ヘルパーにリスト項目を表示させるのに苦労しています。マークアップは次のようになります。
- @bars.each do |bar|
<% display_bar(bar) %>
実際のヘルパーは次のようになります。
module MyHelper
def display_bar(bar)
type = bar.type
concat(%li.type)
concat(%b some text)
concat(%i some more text)
end
end
ここで何が間違っていますか?