attr_accessor not accessible in accept_nested_attributes_for
问题 On my payments page there are certain variables such as card_number that I want to pass from the View to the Model but I do not want to store them in the db. I can usually easily achieve this by simply using attr_accessor but in this case the model is being passed in params through accepts_nested_attributes_for and for some reason the params are not being passed through: in User.rb i have has_many :credit_cards accepts_nested_attributes_for :credit_cards in the view file i have a nested form