title: Rails 4 and Active Admin: ActiveModel::ForbiddenAttributesError
body: <p>The full error is the following: </p>
  
  <pre><code>ActiveModel::ForbiddenAttributesError in Admin::ProductsController#create
  </code></pre>
  
  <p>My product model only has a <code>name</code> and <code>price</code>. <strong>Why is <code>commit</code> a parameter?</strong> When I click the 'Create Product' button within the admin dashboard, this is the params output:</p>
  
  <pre><code>Parameters:
  
  {"utf8"=&gt;"✓",
   "authenticity_token"=&gt;"6/pCeklsaik4sYF5h8+WRPddkH7wJn9ZJHd6YLaaNuc=",
   "product"=&gt;{"name"=&gt;"Black Shirt Male",
   "price"=&gt;"25"},
   "commit"=&gt;"Create Product"}
  </code></pre>
  
  <p>From what I've gathered reading other Stack Overflow posts, you need to use strong parameters in Rails 4 instead of <code>attr_accessible</code>, which was done for me when I scaffolded the product model. In my <code>create</code> action in the Products controller, I have: </p>
  
  <pre><code>@product = Product.new(product_params)
  </code></pre>
  
  <p>And product_params is defined as:</p>
  
  <pre><code>def product_params
    params.require(:product).permit(:name, :price)
  end
  </code></pre>
  
  <p>I didn't do anything fancy when I created the model, and in my Gemfile I'm using the following as the documentation suggested for Rails 4:</p>
  
  <pre><code>gem 'stripe', :git =&gt; 'https://github.com/stripe/stripe-ruby'
  </code></pre>
  
  <p><strong>Why am I getting this error when I create a new product via the Active Admin dashboard? Any input on the matter is appreciated.</strong> </p>