title: rails strong parameter not accepting array of hashes
body: <p>I have a group controller which accepts array of hashes as parameter for POST request for create action</p>
  
  <pre><code>  def create
      response = Group.create(current_user_id, group_params)
      render json: response
    end
  
    def group_params
      params.require(:group).permit(:group_name, :group_title, group_members: [])
    end
  </code></pre>
  
  <p>But its not accepting the group_members parameter via strong parameter</p>
  
  <p>Here is what the incoming request with params looks like in my app</p>
  
  <pre><code>Started POST "/groups" for 127.0.0.1 at 2014-08-04 08:25:37 +0545
  Processing by GroupsController#create as JSON
    Parameters: {"group"=&gt;{"group_name"=&gt;"Fourth group", "group_title"=&gt;"fourth tester", "group_members"=&gt;[{"id"=&gt;"0833be3c-17db-11e4-904b-3f662703cb5b", "darknet_accountname"=&gt;"@ckgagan", "access_level"=&gt;"Write"}]}}
  Unpermitted parameters: group_members
  Completed 200 OK in 10ms (Views: 0.2ms)
  </code></pre>
  
  <p>I have seen many posts which says that adding <strong>group_members : []</strong> inside permit will work but its not working in my case.</p>