Sha256: 8c2e9d4b30b5ac92434bf2cafdc8c266abaeb6e6a842a47b940c173eac07c86f
Contents?: true
Size: 906 Bytes
Versions: 5
Compression:
Stored size: 906 Bytes
Contents
# frozen_string_literal: true ActiveAdmin.register Post do permit_params :author_id, :title, :description, :category, :dt, :position, :published, tag_ids: [] index do selectable_column id_column column :title column :author column :published column :created_at actions end show do attributes_table do row :author row :title row :description row :category row :dt row :position row :published row :tags row :created_at row :updated_at end active_admin_comments end form do |f| buttons = %w[bold italic underline link] f.inputs 'Post' do f.input :author f.input :title f.input :description f.input :category f.input :dt f.input :position f.input :published end f.inputs 'Tags' do f.input :tags end f.actions end end
Version data entries
5 entries across 5 versions & 1 rubygems