- f.inputs t('activerecord.models.background.one'), for: [:background, f.object.background || Background.new] do |item|
  - item.input :image,
               as: :file,
               label: I18n.t('form.label.background'),
               hint: item.object.background? ? retina_image_tag(item.object, :image, :medium) : ''

  - if item.object.background?
    - item.input :_destroy,
                 as: :boolean,
                 hint: I18n.t('form.hint.background.destroy')
- f.inputs t('activerecord.models.background.one'), for: [:background, f.object.background || Background.new] do |item|
  - item.input :image,
               as: :file,
               label: I18n.t('form.label.background'),
               hint: retina_image_tag(item.object, :image, :medium)

  - if f.object.background?
    - item.input :_destroy,
                 as: :boolean,
                 hint: I18n.t('form.hint.background.destroy')
Fix bug with background? condition to display delete checkbox
Fix bug with background? condition to display delete checkbox

lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter