Devin
Devin

Reputation: 737

Rails routing error after scaffolding?

So I'm receiving a routing error No route matches [GET] "/"

my routes.rb:

Webapp::Application.routes.draw do
  resources :ideas
end

I scaffolded this ideas controller together by running this in my projects folder:

$ rails generate scaffold idea name:string description:text picture:string
$ rake db:migrate
$ rails s

& thats when I received the routing error.

Upvotes: 0

Views: 263

Answers (1)

Dru
Dru

Reputation: 9820

What do you have for root :to => in routes.rb? This determines [GET] "/"

Upvotes: 1

Related Questions