Rhino API
Per-option reference for the Rhino field provided by avo-rhino_field. For installation, ActionText setup, and examples, see the Rhino guide.
Pass options to a field declaration in your resource's fields method, for example in app/avo/resources/post.rb:
field :body, as: :rhino, always_show: trueThe gem registers the field as :rhino and hides it on the Index view by default. Form views render the editor; the Show view renders sanitized HTML. For options shared by fields, see Field options.
Show view presentation
-> always_show
Keeps the full content visible on the Show view instead of making it collapsible. It does not change the editor on form views.
field :body, as: :rhino, always_show: true- Type: Boolean
- Default:
false
Ruby truthiness
The option uses Ruby truthiness rather than parsing Boolean strings. Only false and nil leave the content collapsible; values such as "false" and 0 keep it fully visible.