Closed joshleblanc closed 2 years ago
rails generate scaffold api/user email:uniq password:digest --api
app/views/api/users/index.json.jbuilder
api_users/api_user
api/users/api_user
The partial references should be api/users/api_user
The partial referenced is api_users/api_user, which doesn't exist.
Rails version: Rails 6.0.1
Ruby version: ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32]
(Cross-refs #492)
Steps to reproduce
rails generate scaffold api/user email:uniq password:digest --api
app/views/api/users/index.json.jbuilder
, it referencesapi_users/api_user
, notapi/users/api_user
Expected behavior
The partial references should be
api/users/api_user
Actual behaviora
The partial referenced is
api_users/api_user
, which doesn't exist.System configuration
Rails version: Rails 6.0.1
Ruby version: ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32]