title: undefined method `save' for nil:NilClass on controller
body: <p>I am begging to learn ruby on rails and doing the following I am receiving the following errors:</p>
  <blockquote>
  <p>NoMethodError in ArticlesController#create</p>
  <p>undefined method `save' for nil:NilClass</p>
  </blockquote>
  <p><strong>It has to do with the @article.save</strong></p>
  <p><strong>articles_controllers.rb</strong></p>
  <pre><code>class ArticlesController &lt; ApplicationController
   def new
     @article = Article.new
   end
   def create
   #render plain: params[:article].inspect
     @article = Article.new(article_params)
     @article.save
     redirect_to articles_show(@article)
   end
   private
     def article_params
     params.require(:article).permit(:tittle, :description)  
     end
   end
  </code></pre>
  <p><strong>routes.rb</strong></p>
  <pre><code>Rails.application.routes.draw do
  
  root 'pages#home'
  
  get 'about', to: 'pages#about'
  
  resources :articles
  
  end
  </code></pre>
  <p><strong>new.html.erb</strong>
  <h1>Create an article</h1></p>
  <pre><code>&lt;%= form_for @article do |f| %&gt;
  
  &lt;p&gt;
      &lt;%= f.label :tittle %&gt;&lt;br&gt;
      &lt;%= f.text_field :tittle %&gt;
  &lt;/p&gt;
  &lt;p&gt;
      &lt;%= f.label :description %&gt; &lt;br&gt;
      &lt;%= f.text_area :description %&gt;
  &lt;/p&gt;
  &lt;p&gt;
      &lt;%= f.submit %&gt; 
  &lt;/p&gt;
  
  &lt;% end %&gt;
  </code></pre>