Skip to content
Sameer S edited this page Apr 15, 2016 · 3 revisions

Section used for the show view.

It inherits its configuration from the base section.

To configure which fields are shown in the "Show" view of a model, use the show method in the config block:

RailsAdmin.config do |config|
  config.model 'BlogPage' do
    show do
      field :title
      field :author_name
    end
  end
end

You can display empty fields in show view with:

RailsAdmin.config do |config|
  config.compact_show_view = false
end

More here

Clone this wiki locally