title: undefined local variable or method `article_params' for #<ArticlesController:0x007ff45cebd680>
body: <p>i'm having problems with my page I created .the message i get is above.this is my articles controller.rb page code.learning ruby and the challenges it brings.i'm stuck in this section. And i've been having issues with section.once i post up my code.i don't know if i messed up my codes  or something like that.</p>
  
  <p>class ArticlesController &lt; ApplicationController</p>
  
  <pre><code>def index
  @articles = Article.all
  end
  
    def new
   @article =Article.new
    end
  
    def edit
      @article = Article.new(article_params[:id])
    end
  
  
  
  def create
     @article =Article.new(article_params)
     if@article.save
       flash[:notice] = "Article was successfully created"
     redirect_to article_path(@article)
       else
       render 'new'
     end
     end
  
  
  
  
  
   def update
        @article =Article.find(params[:id])
        if@article.update
          flash[:notice] = "Article was successfully updated"
          redirect_to article_path(@article)
      else
      render 'edit'
  
  
  
   end
  end
  
  def show
  
  
  
   @article =Article.find(params[:id])
  end
  end
  </code></pre>
  
  <p>and this is the error page undefined local variable or method `article_params' for #</p>
  
  <p>Extracted source (around line #12):
  10
  11
  12
  13
  14
  15</p>
  
  <p>def edit
      @article = Article.new(article_params[:id])
    end</p>
  
  <pre><code>i get on ruby rails
  </code></pre>