title: NameError in ArticlesController#create undefined local variable or method `article_params' for #<ArticlesController:Did you mean? article_path
body: <p>I am getting this error when I create my articles:</p>
  
  <p>error: NameError in ArticlesController#create
  undefined local variable or method `article_params' for # Did you mean? article_path</p>
  
  <p>image of error : <a href="https://i.stack.imgur.com/EvnRV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EvnRV.png" alt="enter image description here"></a></p>
  
  <p>my code :</p>
  
  <pre><code>class ArticlesController &lt; ApplicationController
    def new
      @article = Article.new
    end
  
    def create
      @article = Article.new(article_params)
      if  @article.save
        flash[:notice] = "Article was submitted succsefully"
        redirect_to (@article)
      else
        render :new
      end
  
      private
  
      def article_params
        params.require(:article).permit(:title, :description)
      end
    end
  end
  </code></pre>