Sha256: 6cc581e367da5a247f7098db070033c57b97a71332f620c6d56ae60c3682952d

Contents?: true

Size: 455 Bytes

Versions: 7

Compression:

Stored size: 455 Bytes

Contents

ActiveAdmin.register Order do
  show do |f|
    attributes_table do
      row :id
      row :quantity
      row :price
      row :customer
      row :placed
      row :shipped
      row :created_at
      row :updated_at
    end

    show_rules
  end

  form do |f|
    f.inputs 'Details' do
      f.input :quantity
      f.input :price
      f.input :customer
      f.input :placed
      f.input :shipped
    end

    f.has_rules

    f.buttons
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rules-1.1.1 spec/dummy/app/admin/orders.rb
rules-1.1.0 spec/dummy/app/admin/orders.rb
rules-1.0.0 spec/dummy/app/admin/orders.rb
rules-0.1.2 spec/dummy/app/admin/orders.rb
rules-0.1.1 spec/dummy/app/admin/orders.rb
rules-0.1.0 spec/dummy/app/admin/orders.rb
rules-0.0.1 spec/dummy/app/admin/orders.rb