Home>

Routing Error
No route matches [POST] "/ items/new"

This error appears when implementing the posting function.
Resources: items, only: [: index,: new,: create] do in routes.rb
Why do I get a routing error even though I have mentioned?

class ItemsController</pre>
<pre><code>class Item</pre>
<pre><code>Rails.application.routes.draw do
  devise_for: users
  root to:'items # index'
  resources: items, only: [: index,: new,: create] do
  end
end

Thanks for your cooperation.