I have a new Rails 4 App where I am attempting to use Angular primarily on the front-end.

I have the following:

Board.rb

```
class Board < ActiveRecord::Base
    belongs_to :organization
    has_many :warehouses

    accepts_nested_attributes_for :warehouses
end

```

Warehouse.rb

```
class Warehouse < ActiveRecord::Base
  belongs_to :board
end

```

In my boards\_controller.rb in the create method I call

```
  @board = @organization.boards.build(board_params) # Organizations are a separate model that have many boards

```

where 

```
def board_params
  params.require(:board).permit(:date, :organization_id, :warehouses => [:name])
end

```

If I drop a binding.pry at the beginning of the method, the params look like so:

```
 {"board"=>
  {"date"=>"2013-06-02T15:12:16.554Z",
   "warehouses"=>
     [{"name"=>"Tidewater",
      "grades"=>nil,
      "new_grade"=>
       {"name"=>"New Grade",
        "total"=>0,
        "available"=>"2013-06-02T15:12:16.554Z"}},
     {"name"=>"MIT",
      "grades"=>nil,
      "new_grade"=>
       {"name"=>"New Grade",
        "total"=>0,
        "available"=>"2013-06-02T15:12:16.554Z"}}]},
 "action"=>"create",
 "controller"=>"boards",
 "organization_id"=>"1",
 "format"=>"json"}

```

however, calling board\_params directly responds with:

```
Unpermitted parameters: warehouses
=> {"date"=>"2013-06-02T15:12:16.554Z"}

```

I've seen suggestions to use warehouses\_attributes rather than just 'warehouses' in the board\_params but this doesn't seem to work either.

I was wondering if anyone has run into a similar problem and if so..how I can adjust my request or controller to accept and build the warehouse object with their respective Board. Perhaps I'm missing a root node in the warehouse objects?

Thanks so much!