Rails 4.2 model relationships has_many generated helper methods for objects
<p>I wondering about the automated helper methods for objects automatically generated by rails.</p>

<pre><code>class Car &lt; ActiveRecord::Base
   has_one :steering_wheel, inverse_of: car
   has_many :windows, inverse_of: :car
end

class Window &lt; ActiveRecord::Base
   belongs_to :car, inverse_of: :windows
end

class SteeringWheel &lt; ActiveRecord::Base
   belongs_to :car, inverse_of: :steering_wheel
end
</code></pre>

<p>With this  relationship i can do </p>

<pre><code>car = Car.first
car.create_steering_wheel
</code></pre>

<p>But i would like also to create a new <code>window</code>
like </p>

<pre><code>car.create_window
</code></pre>

<p>How is it possible to do this?</p>