app/helpers/labels_helper.rb
# !! Note that `label_tag` is a Rails reserved word, so we have to append and make exceptions
Note that `label_tag` is a Rails reserved word, so we have to append and make exceptions
Note that ` label_tag ` is a Rails reserved word so we have to append and make exceptions
def label_code_128_tag(label)
    c = Barby::Code128.new(label.text)
    content_tag(
      :span, 
      content_tag(
        :span, 
        c.to_svg(xmargin: 0, ymargin: 0).html_safe,
        class: :code128_barcode
      ) +
      content_tag(:span, label.text, class: 'code128_text'),
      class: :code128
    )
  end
def label_code_128_tag ( label ) c = Barby :: Code128 . new ( label . text ) content_tag ( :span , content_tag ( :span , c . to_svg ( xmargin : 0 , ymargin : 0 ) . html_safe , class : :code128_barcode ) + content_tag ( :span , label . text , class : 'code128_text' ) , class : :code128 ) end
Note that `label_tag` is a Rails reserved word, so we have to append and make exceptions
Note that ` label_tag ` is a Rails reserved word so we have to append and make exceptions
label
<not_specific>