Sha256: 5087302861cee1d5fe689a5fe1e8dc9d858fa47a6e8a1dec40eb536e750a4b9c

Contents?: true

Size: 439 Bytes

Versions: 173

Compression:

Stored size: 439 Bytes

Contents

ActiveAdmin.register <%= class_name %> do
  permit_params <%= attributes_names.map { |a| ":#{a}" }.join(', ') %>

  index do
    selectable_column
    id_column<% attributes.each do |at| %>
    column :<%= at.name %><% end %>
    actions
  end
<% attributes.each do |at| %>
  filter :<%= at.name %><% end %>

  form do |f|
    f.inputs do<% attributes.each do |at| %>
      f.input :<%= at.name %><% end %>
    end
    f.actions
  end
end

Version data entries

173 entries across 173 versions & 1 rubygems

Version Path
pg_rails-7.6.21.pre.4 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.21.pre.3 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.21.pre.2 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.21.pre.1 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.20 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.19 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.18 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.17 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.16 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.15 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.14 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.13 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.12 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.11 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.10 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.9 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.8 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.7 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.6 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
pg_rails-7.6.5 pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb