In Rails 4, just this
<%= form_tag photos_update_path do %>
<% @photos.each do |photo| %>
<%= fields_for "photos[]", photo do |pf| %>
<%= pf.text_field :caption %>
... other photo fields
More Related Contents:
- accepts_nested_attributes_for with find_or_create?
- What is the _snowman param in Ruby on Rails 3 forms for?
- Submit POST data from controller to another website in Rails
- Ruby on Rails: Submitting an array in a form
- Rails 3 submit a form with multiple records
- Rails: Multi-submit buttons in one Form
- Rails 4 nested attributes and has_many :through associaton in a form
- POST json to rails server
- Using Rails link_to for links that post
- How can I format the value shown in a Rails edit field?
- Rails has_many through form with checkboxes and extra field in the join model
- Labels for radio buttons in rails form
- Format a string containing Phone numbers
- How to read if a checkbox is checked in PHP?
- Rails: How to reference images in CSS within Rails 4
- Random record in ActiveRecord
- Is there documentation for the Rails column types?
- Rails migration for change column
- gem install libv8 –version ‘3.11.8.17’ on ruby (windows)
- Setting Environment Variables in Rails 3 (Devise + Omniauth)
- Form Submit button only works after reload
- Why use “self” to access ActiveRecord/Rails model properties?
- PHP $_POST not working? [duplicate]
- Converting an array of objects to ActiveRecord::Relation
- Rails not reloading session on ajax post
- How to specify a prefix when uploading to S3 using activestorage’s direct upload?
- PGError: ERROR: aggregates not allowed in WHERE clause on a AR query of an object and its has_many objects
- Ruby on Rails Callback, what is difference between :before_save and :before_create?
- Ruby on Rails: Advanced search
- An error occurred while installing pg (0.17.1), and Bundler cannot continue