title: undefined method `posts_path' for #<#<Class:0x007fe3547d97d8>:0x007fe3546d58f0>
body: <p>I'm new to rails and I'm getting this error:</p>
  
  <pre><code>undefined method `posts_path' for #&lt;#&lt;Class:0x007fe3547d97d8&gt;:0x007fe3546d58f0&gt;
  </code></pre>
  
  <p>I've posted my files below, please keep in mind I'm new to rails so simple explanations would be really appreciated!</p>
  
  <p>Route.rb:</p>
  
  <pre><code>Rails.application.routes.draw do
    get '/post' =&gt; 'post#index'
    get '/post/new' =&gt; 'post#new'
    post 'post' =&gt; 'post#create'
  end
  </code></pre>
  
  <p>post_controller.rb:</p>
  
  <pre><code>class PostController &lt; ApplicationController
      def index
          @post = Post.all
      end
  
      def new
        @post = Post.new
      end
  
      def create
        @post = Post.new(post_params)
        if @post.save
          redirect_to '/post'
        else
          render 'new'
        end
      end
  
      private
      def post_params
        params.require(:post).permit(:content).permit(:title)
      end
  end
  </code></pre>
  
  <p>new.html.erb:</p>
  
  <pre><code>&lt;%= form_for(@post) do |f| %&gt;
    &lt;div class="field"&gt;
      &lt;%= f.label :post %&gt;&lt;br&gt;
      &lt;%= f.text_area :title %&gt;
      &lt;%= f.text_area :content %&gt;
    &lt;/div&gt;
    &lt;div class="actions"&gt;
      &lt;%= f.submit "Create" %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>