Home
Ruby on Rails
Cheatsheets
fields_for creates a scope around a specific model object like form_for, but doesn't create the form tags themselves, making fields_for suitable for specifying additional model objects in the same form. See the example.
Sometimes you want to quickly see the output of helper methods, and constantly clicking refresh in your browser then viewing the page source can be tiresome. Instead, use the Rails console to check helpers are doing what you want them to.
More