Rails 4.1 Nested Attributes and Fields For Getting Unpermitted Parameters and Not Saving
问题 Research: Rails 4.0 beta, fields_for not accepting pluralized model_name in one-to-many association, Rails 4 Nested Attributes with fields_for Don't Save to Database First, let's get the most common problem out of the way: incorrectly named attributes parameters for strong parameters. Mine is correctly plural. class AdultsController < ApplicationController ... def update authorize @user respond_to do |format| if @user.update_attributes(user_params) format.html { redirect_to unit_adult_path(