Call with the context set to a record. Repeats the content of the tag with
this_field set to the value and name of each of the record’s fields in turn. E.g. this is useful for generating a form containing each of the fields. Tags like <field-list> and <table> forward their attributes to this tag and also have the features described here. For example, the
fields attribute to <field-list> supports the same options as described here.
fields- set to one of:
- A model class - equivalent to listing all of the regular ‘content columns’ of that model
*’ - equivalent to listing all of the regular ‘content columns’ of the current record
- A comma separated list of field names.
Defaults to ‘
associations- set to
has_manyto select the associations
has_manyrelationships used as the “fields”. Do not also give the
skip- comma separated list of field names to omit.
skip-associations- set to
has-manyto omit all
include-timestamps- whether or not to include the standard ActiveRecord timestamp fields such as
updated_at. Defaults to false.
force-all- by default fields are skipped if the current user does not have view permission. Set
force-allto true to skip this permission check and include all the fields.
Edit this page