37 lines
617 B
Ruby
37 lines
617 B
Ruby
ActiveAdmin.register Lug do
|
|
permit_params :name, :region, :department, :url, :city
|
|
|
|
index do
|
|
column :name
|
|
column :url
|
|
column :city
|
|
column :department
|
|
column :related_region
|
|
actions
|
|
end
|
|
|
|
show do |l|
|
|
attributes_table do
|
|
row :name
|
|
row :url do
|
|
link_to l.url, l.url
|
|
end
|
|
row :related_city
|
|
row :department
|
|
row :related_region
|
|
end
|
|
active_admin_comments
|
|
end
|
|
|
|
form do |f|
|
|
f.inputs do
|
|
f.input :name
|
|
f.input :url
|
|
f.input :city
|
|
f.input :department
|
|
f.input :related_region
|
|
end
|
|
f.actions
|
|
end
|
|
end
|