First foray into Rails, and everything’s smooth until I hit step 5 in the Getting Started docs.
After adding the article resource to config/routes.rb:
Adding a new resource, as per initial guide,
“Getting Up and Running”:
I receive the following error at http://localhost:3000/articles/new:
Invalid route name, already in use: ‘root’ You may have defined two routes with the same name using the
:asoption, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with
resourcesas explained here: http://guides.rubyonrails.org/routing.html#restricting-the-routes-created
with an indication that the issue is at “root ‘welcome#index’”
What am I missing here?
Enter code here…