ShowDsl
cm_show
Create a view for the show page.
Parameters
| Name | Type | Description |
|---|---|---|
display_name | String | The display name of the page. |
page_title | String | Symbol | The title of the page. If a symbol is passed, it will be a method name on the model. |
page_description | String | The description of the page. |
partial | String | The 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)