Hobo Cookbook

View Source

Rapid

<with-field-names>

Call with the context set to a model class. Repeats the content of the tag with this set name of each of the model’s fields in turn. E.g. this tag is used when generating the heading row in a <table fields='...'/>.

This tag is in need of a review - it’s a bit funky.

Attributes

  • 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 ’*
  • skip - comma separated list of field names to omit.

  • skip-associations - set to has-many to omit all has_many associations.

  • include-timestamps - whether or not to include the standard ActiveRecord timestamp fields such as created_at and updated_at. Defaults to false.

Show Source

Comments

No Comments to display