title: Devise Signup, create a has_one record
body: <p>I'm trying to create a Provider record when  a user signs up using devise.   I have set it up as per:
  <a href="https://stackoverflow.com/questions/7987015/devise-user-belongs-to-organization">Devise: User belongs_to organization</a></p>
  
  <p>however no provider is created.  What could i be doing wrong?</p>
  
  <p>User has_one Provider.<br>
  I modified my signup form:</p>
  
  <pre><code>&lt;%= fields_for :provider do |provider_fields| %&gt;
        &lt;%= provider_fields.label :name, :label =&gt; 'Company Name' %&gt;
        &lt;%= provider_fields.text_field :name %&gt;
   &lt;% end %&gt;
  </code></pre>
  
  <p>And my model</p>
  
  <pre><code>attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name, :last_name,  :provider_attributes
      belongs_to :provider
       accepts_nested_attributes_for :provider
  </code></pre>
  
  <p>I can see in the rails s output:  </p>
  
  <pre><code> "provider"=&gt;{"name"=&gt;"kjhkjh"},
  </code></pre>
  
  <p>amongst the user attributes when i submit the form.  </p>