Rails form with three models and namespace
问题 Banging my head against this one for a long time. On Rails 2.3.2, Ruby 1.9.1. Trying to use one form to create three objects that have these relations: class Person has_one :goat end class Goat belongs_to :person has_many :kids end class Goat::Kid belongs_to :goat end Here's a summary of the schema: Person first_name last_name Goat name color Goat::Kid nickname age I'd like my #create action to instantiate new instances of all three models with the specified associations. However, while it