Customizing the show page in ActiveAdmin

后端 未结 3 1466
不思量自难忘°
不思量自难忘° 2021-02-14 02:35

The default show page in ActiveAdmin is a table with one attribute per row. For my backend, this would be fine, except that I want to hide fields such as id, created_at, updated

3条回答
  •  长发绾君心
    2021-02-14 03:04

    show do
    
      attributes_table do
        row :profilepic do
          image_tag admin_user.profilepic.url, class: 'my_image_size'
        end
      row :name
      row :email
      row :adrs
      row :phone
      row :role
      row :salary
      row :parent_id
      row :joindate
    end
    

    end

提交回复
热议问题