Sha256: da7d5e299dc88b368b9c089ee7a4cebddce18d8f44285eedcaa19d69b9968b9e

Contents?: true

Size: 598 Bytes

Versions: 1

Compression:

Stored size: 598 Bytes

Contents

if defined?(ActiveAdmin)
  module Gemgento
    ActiveAdmin.register Subscriber do
      menu label: 'Subscribers', parent: 'Gemgento'

      permit_params :first_name, :last_name, :email

      index do
        column :email
        column :first_name
        column :last_name
        column :country
        column :city
        actions
      end

      form multipart: true do |f|
        f.inputs do
          f.input :email
          f.input :first_name
          f.input :last_name
          f.input :country
          f.input :city
        end

        f.actions
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemgento-2.8.0 lib/gemgento/admin/subscribers.rb