Skip to content

Commit 91b3344

Browse files
committed
Fix stale API references and typos in README
1 parent 279ec4f commit 91b3344

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
* **Works beautifully with ERB.** Start using Superform in your existing Rails app without changing a single ERB template. All the power, zero migration pain.
88

9-
* **Concise field helpers.** `Field(:publish_at).date`, `Field(:email).email`, `field(:price).number` — intuitive methods that generate the right input types with proper validation.
9+
* **Concise field helpers.** `Field(:publish_at).date`, `Field(:email).email`, `Field(:price).number` — intuitive methods that generate the right input types with proper validation.
1010

1111
* **RESTful controller helpers** Superform's `save` and `save!` methods work exactly like ActiveRecord, making controller code predictable and Rails-like.
1212

@@ -235,7 +235,7 @@ class Components::Form < Superform::Rails::Form
235235
yield choice
236236
else
237237
div(class: "radio-option") do
238-
render choice.build_radio(class: "radio-input")
238+
render choice.build_input(class: "radio-input")
239239
label(for: DOM.join(dom.id, choice.index), class: "radio-label") do
240240
plain choice.text
241241
end
@@ -404,7 +404,7 @@ class JobPostingForm < Components::Form
404404
end
405405

406406
# ActiveRecord relations work as select options too.
407-
# Choice::Mapper uses the primary key as value and joins remaining
407+
# Choices::Mapper uses the primary key as value and joins remaining
408408
# attributes for the label.
409409
div do
410410
Field(:hiring_manager_id).label { "Hiring manager" }

0 commit comments

Comments
 (0)