I'm new to rails and I'm getting this error:

```
undefined method `posts_path' for #<#<Class:0x007fe3547d97d8>:0x007fe3546d58f0>

```

I've posted my files below, please keep in mind I'm new to rails so simple explanations would be really appreciated!

Route.rb:

```
Rails.application.routes.draw do
  get '/post' => 'post#index'
  get '/post/new' => 'post#new'
  post 'post' => 'post#create'
end

```

post\_controller.rb:

```
class PostController < 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

```

new.html.erb:

```
<%= form_for(@post) do |f| %>
  <div class="field">
    <%= f.label :post %><br>
    <%= f.text_area :title %>
    <%= f.text_area :content %>
  </div>
  <div class="actions">
    <%= f.submit "Create" %>
  </div>
<% end %>

```