Assume you have code in your project like this:
form_for :company do |f|
f.fields_for(:user, f.object.user || f.object.build_user) do |ff|
ff.text_field :nameWith the get_or_build gem, you can turn this code into the following:
form_for :company do |f|
f.fields_for(:user, :build_association => true) do |ff|
ff.text_field :nameI hope you will enjoy this gem! Thank you for your attention!