ActionView::Helpers::FormTagHelper
field_name
API docs (Rails 8.1.4.1) ↗def field_name(object_name, method_name, *method_names, multiple: false, index: nil)
Description
Returns a name value as a string, in the same format that text_field and other FormHelper helpers use.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Interacting with the preview updates the form submission.
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params