thoughtbot / thoughtbot/form_props

Add support for dot notation with form_props

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
50
Forks
0
PR merge metrics
No merged PRs in 30d

Description

This story pairs with this issue pretty well. Whereas that issue is about adding support for dot notation to rack, this one is about having form_props generate form attributes that use dot notation instead of the bracket notation for the input names.

So instead of generating an input name that looks like posts[title], i'd like to give form_props an option so that it generates posts.title

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 by tracing where form_props generates input names and read the linked issue about dot notation in rack for related context. Add an option that produces names such as posts.title instead of posts[title], then verify the generated form attributes for both notation styles.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.