Skip to main content

avo-associations

Wire Active Record relationships into Avo resources as association fields (`field :x, as: :belongs_to | :has_one | :has_many | :has_and_belongs_to_many`) inside `def fields`, including polymorphic and `has_many :through` relations, type-to-search pickers, extra join-table fields at attach time, and nested create-in-form. Use when the user wants to link one record to another or surface related records — in Avo terms ("add a belongs_to field", "show a has_many panel", "make the association searchable", "polymorphic belongs_to", "has_many through with attach_fields", "use_resource / attach_scope") or in plain Rails terms ("a post belongs to a user", "show all of a user's orders on their page", "connect users and teams with a join table", "the user dropdown is too long — make it type-to-search", "a comment can belong to a post or a project", "add extra fields when attaching a member to a team", "create the related record right from the form", "link these two models in the admin").

الانتقال إلى التثبيت

معلومات المصدر

المستودع
avo-hq/avo
آخر نشاط في المصدر
٤ أغسطس ٢٠٢٦ في ١٠:٥٤
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
١٬٧٩٧
التفرعات
٣١٥

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.