title: ActiveModel::ForbiddenAttributesError only when creating a new record
body: <p>I have upgraded my app rails version from 3.2.13 to 4.2.1 so
  When ever i am trying to create a new record i am getting <code>ActiveModel::ForbiddenAttributesError</code></p>
  
  <p>I am using rails4.2.1.</p>
  
  <p>This my controller</p>
  
  <pre><code>class CategoriesController &lt; ApplicationController
    load_and_authorize_resource
  
    before_action :set_category, only: [:edit, :show, :update, :destroy]
  
    def index
  
    end
  
    def show
    end
  
    def new
      @category = Category.new
    end
  
    def create
      @category = Category.new(category_params)
      if @category.save
        redirect_to @category, :notice =&gt; "Successfully created category."
      else
        render :action =&gt; 'new'
      end
    end
  
    def edit
    end
  
    def update
      if @category.update_attributes(category_params)
        redirect_to @category, :notice  =&gt; "Successfully updated category."
      else
        render :action =&gt; 'edit'
      end
    end
  
    def destroy
      @category.destroy
      redirect_to categories_url, :notice =&gt; "Successfully destroyed category."
    end
  
    private
  
      def set_category
        @category = Category.find(params[:id])
      end
  
      def category_params
        params.require(:category).permit(:name)
      end
  end
  </code></pre>
  
  <p>Whenever i update existing category there is no issue. category updates successfully.</p>
  
  <p>Pls Help!</p>
  
  <p>Thanks</p>