Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API scaffold generator doesn't reference jbuilder partials correctly when namespaced #474

Closed
joshleblanc opened this issue Jan 11, 2020 · 1 comment

Comments

@joshleblanc
Copy link

Steps to reproduce

  1. Create a new rails project
  2. Run rails generate scaffold api/user email:uniq password:digest --api
  3. Look at app/views/api/users/index.json.jbuilder, it references api_users/api_user, not api/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]

@robin850
Copy link
Member

(Cross-refs #492)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants