Skip to main content

ShowDsl

cm_show

Create a view for the show page.

Parameters

NameTypeDescription
display_nameStringThe display name of the page.
page_titleString | SymbolThe title of the page. If a symbol is passed, it will be a method name on the model.
page_descriptionStringThe description of the page.
partialStringThe partial path to render for the page.

Example — Showing page

cm_show page_title: :title do
tab :profile, '' do
cm_section 'Post Details' do
field :title
field :body, field_type: :rich_text
field :is_featured
field :status, field_type: :tag, tag_class: STATUS_TAG_COLOR
end
end
end

Method Signature

cm_show(display_name: nil, page_title: nil, page_description: nil, partial: nil)