Skip to main content


Form helpers are designed to make it much easier to work with resources. A form to create or update a resource typically reflects the resource’s identity in several ways: The URL that the form is sent to should result in a request being routed to the appropriate controller action. Input fields should be named in such a way that in the controller their values appear in the appropriate places within the parameter’s hash. For an existing record, input fields corresponding to resource attributes should display the current values of those attributes when the form is initially displayed.