rails nested form changes id to decimal
问题 Quick problem description The value of the id in a nested form is rendered as 10006.0 instead of 10006 (decimal/float instead of an integer) resulting in an ActiveRecord::RecordNotFound exception. What is causing this behaviour?? The code setup So I followed the rails-guides tutorial on how to build nested forms. My 2 models are: class Broker < ActiveRecord::Base has_many :execution_groups, dependent: :destroy accepts_nested_attributes_for :execution_groups, allow_destroy: true, reject_if: