Sha256: 38041b6bdb185b993cfd4d0e88b47ba0e6bba5a4e5cd4628933a50babeae9353

Contents?: true

Size: 1.29 KB

Versions: 29

Compression:

Stored size: 1.29 KB

Contents

ActiveAdmin.register <%= class_name %> do

  # See permitted parameters documentation:
  # https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
  #
  # Uncomment all parameters which should be permitted for assignment
  #
  # permit_params <%= @boilerplate.permit_params %>
  #
  # or
  #
  # permit_params do
  #   permitted = [<%= @boilerplate.permit_params %>]
  #   permitted << :other if params[:action] == 'create' && current_user.admin?
  #   permitted
  # end
  <% if options.include_boilerplate? %>
  # Limit actions available to your users by adding them to the 'except' array
  # actions :all, except: []

  # Add or remove filters (you can use any ActiveRecord scope) to toggle their
  # visibility in the sidebar
  <%= @boilerplate.filters %>

  # Add or remove columns to toggle their visiblity in the index action
  # index do
  #   selectable_column
  #   id_column
  <%= @boilerplate.columns %>
  #   actions
  # end

  # Add or remove rows to toggle their visiblity in the show action
  # show do |<%= class_name.downcase %>|
  <%= @boilerplate.rows %>
  # end

  # Add or remove fields to toggle their visibility in the form
  # form do |f|
  #   f.inputs do
  <%= @boilerplate.form_inputs %>
  #   end
  #   f.actions
  # end
  <% end %>
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
activeadmin-3.2.5 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-3.2.4 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-3.2.3 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-3.2.2 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-3.2.1 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-3.2.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-3.1.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-3.0.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.14.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.13.1 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.13.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.12.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.11.2 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.11.1 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.11.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.10.1 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.10.0 lib/generators/active_admin/resource/templates/admin.rb.erb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/generators/active_admin/resource/templates/admin.rb.erb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.9.0 lib/generators/active_admin/resource/templates/admin.rb.erb