Confused about strong parameters with Devise
问题 I have the following Devise registration form (with irrelevant markup omitted): <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { id: "payment-form" }) do |f| %> <%= f.fields_for resource.paid_account do |pa| %> <%= pa.collection_select :account_plan_id, @account_plans, :id, :name_with_price %> <% end %> <% end %> This form spits out the following HTML: <select id="user_paid_account_account_plan_id" name="user[paid_account][account_plan_id]"> <option