You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
***Works beautifully with ERB.** Start using Superform in your existing Rails app without changing a single ERB template. All the power, zero migration pain.
8
8
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.
10
10
11
11
***RESTful controller helpers** Superform's `save` and `save!` methods work exactly like ActiveRecord, making controller code predictable and Rails-like.
12
12
@@ -235,7 +235,7 @@ class Components::Form < Superform::Rails::Form
235
235
yield choice
236
236
else
237
237
div(class: "radio-option") do
238
-
render choice.build_radio(class: "radio-input")
238
+
render choice.build_input(class: "radio-input")
239
239
label(for:DOM.join(dom.id, choice.index), class: "radio-label") do
240
240
plain choice.text
241
241
end
@@ -404,7 +404,7 @@ class JobPostingForm < Components::Form
404
404
end
405
405
406
406
# 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
0 commit comments