Skip to content

Releases: garethfr/backstage

v0.1.15

27 May 14:42

Choose a tag to compare

Added

  • c.nested :assoc, fields: [...] DSL renders existing has_many records as an inline editable table using accepts_nested_attributes_for
  • Nested rows include a destroy button (×) and a _destroy hidden field; clicking hides the row and marks it for deletion on save
  • A blank add row is always rendered at the bottom of the nested table for creating new records
  • image_url fields on index and dashboard tables now render as <img> tags instead of raw URLs
  • belongs_to fields now render correctly on dashboard tables (was missing)
  • Shared backstage/shared/_cell partial extracted for consistent field rendering across index and dashboard views

v0.1.14

26 May 21:38

Choose a tag to compare

Fixed

  • ActionsController no longer falls back to Backstage::ResourcesController when no custom controller exists — raises NotImplementedError instead of silently dispatching inherited CRUD actions
  • Custom action dispatch now uses method_defined?(name, false) so only actions defined directly on the host subclass are callable; inherited methods (index, create, update, destroy, etc.) are blocked
  • Gemspec homepage corrected to point to the right repository

v0.1.12

25 May 17:26

Choose a tag to compare

Added

  • c.row :field1, :field2 groups fields horizontally in a Pico CSS grid on the edit page
  • c.section "Label" [, collapsed: true] wraps fields in a native <details>/<summary> collapsible block (no JavaScript required); rows and individual fields
    can be nested inside sections
  • c.field called inside a section block moves an existing auto-discovered field into the section rather than leaving it at the top level