luckyframework / luckyframework/website

Document `has_one` for saving an association

Open
#424 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

guides:missing
Dominant language
Crystal
Stars
39
Forks
62
PR merge metrics
No merged PRs in 30d

Description

See:

From our glorious leader:

Kind of like accepts_nested_attributes_for but type safe. Unfortunately only for creating one child record at a time right now though. has_many is trickier

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Avram nested save operation spec and the Lucky discussion, then locate the website's existing association documentation. Document how has_one works when saving an association, including that it currently creates one child record at a time; done means the supported behavior and limitation are clear to readers.

Written by the indexing model from the issue text.

Assessment

Tech stack
crystal
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.