आउटपुट सीधे मेरे HAML टेम्पलेट के लिए इस सहायक के साथ क्या कर रहा है?haml_tag सीधे हैम टेम्पलेट
इस तरहhaml_tag outputs directly to the Haml template.
Disregard its return value and use the - operator,
or use capture_haml to get the value as a String.
टेम्पलेट बुला रहा है display_event:
- @events.each do |event|
= display_event(event)
अगर मैं नियमित रूप से मार्कअप उपयोग कर रहा था यह निम्नलिखित
%li.fooclass
%b Foo
%i Bar
का विस्तार होगा
def display_event(event)
event = MultiJson.decode(event)
markup_class = get_markup_class(event)
haml_tag :li, :class => markup_class do
haml_tag :b, "Foo"
haml_tag :i, "Bar"
end
end
यह त्रुटि है