Module: Comable::Admin::ProductsHelper

Defined in:
app/helpers/comable/admin/products_helper.rb

Instance Method Summary collapse

Instance Method Details

#add_property_button_tag(name) ⇒ Object

プロパティ追加ボタン設置



5
6
7
8
# File 'app/helpers/comable/admin/products_helper.rb', line 5

def add_property_button_tag(name)
  fields = render 'comable/admin/products/property_fields', property_key: nil, property_value: nil
  button_tag(name, type: :button, class: 'add_property btn btn-default pull-right', data: { fields: fields.delete("\n") })
end