Rename with_defaults
to tag_defaults
(or something else)
#1244
-
There is a lot of confusion around I think tag_defaults field: field, class: "input" do |tag_builder|
yield tag_builder
end
m Shared::Field, &.text_input I'd also like to come up with a good name for the yielded object. People can call it whatever they want, but having a good name for the docs and in auto-generated code like Maybe:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
We'll want to modify this issue whenever we come up with a solution: luckyframework/website#410 |
Beta Was this translation helpful? Give feedback.
-
@paulcsmith I think that lacking any other strong opinions, we should move this to This is probably one of those things where lots of good screencasts/website docs that are easily accessible will be much more effective for Lucky users than toiling over getting the name "perfect"! Just to add some historical context, here's how a real-world working use case looks and feels: |
Beta Was this translation helpful? Give feedback.
-
Let's go with |
Beta Was this translation helpful? Give feedback.
Let's go with
tag_defaults
! #1252