RoR - create record on many-to-many join table
问题 I have the following models: Client.rb has_many :establishments accepts_nested_attributes_for :establishments has_many :addressess, through: :establishments accepts_nested_attributes_for :addresses Establishment.rb belongs_to :address belongs_to :client Address.rb has_many :establishments On the show view of the Client I created a <%= link_to "New Establishment", new_client_address_path(@client)%> in order to create a new Address record and a new Establishment to the client. On the