インライン要素を出したい時とか、head内に出したい時とか、標準で出力される <div class="unit unit~~">
が邪魔だったので出力しないで済む方法がないか探したところ、 :type
に :plain
を設定すれば良い模様。
-
:type => :plain
ラッパー出力しない -
:type => :inline
ラッパーをspanタグで出力する
# :type => :plain renders the view without any wrapper
# :type => :inline renders the view with a span element wrapper
# default is a div
invoke(:sample, :some_method, :type => :plain)