feature/share-libs
rb 37 lines 742 Bytes
Raw
1 ActiveAdmin.register ChordShape do
2 menu priority: 7, parent: 'Guitar'
3 permit_params :chord_shape_id, :name, :youtube_link, :image_link
4
5 index do
6 selectable_column
7 column :name
8 column :youtube_link
9 column :image_link
10 actions
11 end
12
13 filter :name
14 filter :youtube_link
15 filter :image_link
16 filter :created_at
17 filter :updated_at
18
19 show do
20 attributes_table do
21 row :name
22 row :youtube_link
23 row :image_link
24 row :created_at
25 row :updated_at
26 end
27 end
28
29 form do |f|
30 f.inputs do
31 f.input :name
32 f.input :youtube_link
33 f.input :image_link
34 end
35 actions
36 end
37 end