views:

16

answers:

0

Hi, sorry for bad English.

For example i execute

script/rails generate scaffold goods title:string --force-plural

Then i follow to http://localhost:3000/goods/new and got error

undefined method `goods_index_path' for #<#:0x7f1e7cb32530>

I found some line involved in this behavour in polymorphic_routes.rb, but can't understand what i need to do without tricks with routing.

...
route << "index" if ActiveModel::Naming.uncountable?(record) && inflection == :plural
...

What's the problem? Thanks.