title: How to save model with nested attributes with postman using JSON in a rails-api only app
body: <p>I am creating a rails-api only app.
  I have 2 models User and Account. 
  <strong>User</strong> model looks like this. </p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    has_many :accounts
    accepts_nested_attributes_for :accounts
  end
  </code></pre>
  
  <p>and my <strong>Accounts</strong> model looks like this, </p>
  
  <pre><code>class Account &lt; ActiveRecord::Base
    belongs_to :user
  end
  </code></pre>
  
  <p><strong>On user create I need to save values to account model as well.
  I need to know how to do that using postman.</strong>
  The format in which to send data so user gets created and also value get inserted in accounts model.</p>
  
  <p>I am using <strong>postman</strong> to do this.</p>
  
  <p>The error I am geeting in server log is as below</p>
  
  <pre><code>Started POST "/auth?email=email000@meail.com&amp;password=[FILTERED]&amp;password_confirmation=[FILTERED]&amp;account[school_name]=mjdhs" for 127.0.0.1 at 2015-10-01 12:54:56 +0530
    ActiveRecord::SchemaMigration Load (0.2ms)  SELECT `schema_migrations`.* FROM `schema_migrations`
  Processing by DeviseTokenAuth::RegistrationsController#create as */*
    Parameters: {"email"=&gt;"email000@meail.com", "password"=&gt;"[FILTERED]", "password_confirmation"=&gt;"[FILTERED]", "account"=&gt;{"school_name"=&gt;"mjdhs"}}
  Unpermitted parameter: account
  Unpermitted parameter: account
  Unpermitted parameter: account
  </code></pre>