We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6595e9a commit e5d6d29Copy full SHA for e5d6d29
README.md
@@ -258,9 +258,9 @@ If you want to add file upload fields to your form you will need to initialize y
258
class User::ImageForm < ApplicationForm
259
def template
260
# render label
261
- render field(:image).upload.label { "Choose file" }
+ render field(:image).input(type: "file").label { "Choose file" }
262
# render file input with accept attribute for png and jpeg images
263
- render field(:image).upload(accept: "image/png, image/jpeg")
+ render field(:image).input(type: "file", accept: "image/png, image/jpeg")
264
end
265
266
0 commit comments