lib/active_admin/LTE/views/index_as_table.rb
# Display a column for the id
Display a column for the id
Display a column for the id
def id_column
            raise "#{resource_class.name} as no primary_key!" unless resource_class.primary_key
            column(resource_class.human_attribute_name(resource_class.primary_key), sortable: resource_class.primary_key) do |resource|
              if controller.action_methods.include?('show')
                link_to resource.id, resource_path(resource), class: 'resource_id_link'
              else
                resource.id
              end
            end
          end
def id_column raise "#{resource_class.name} as no primary_key!" unless resource_class . primary_key column ( resource_class . human_attribute_name ( resource_class . primary_key ) , sortable : resource_class . primary_key ) do | resource | if controller . action_methods . include? ( 'show' ) link_to resource . id , resource_path ( resource ) , class : 'resource_id_link' else resource . id end end end
Display a column for the id
Display a column for the id