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

Problem solved with relative paths not changing when creating Scoped view. #318

Merged

Conversation

lef237
Copy link
Contributor

@lef237 lef237 commented Jul 6, 2022

Nice to meet you!
My name is @lef237 and I am using devise-i18n in Japan.

Resolved an issue where relative paths were not changed when creating Scoped views such as rails g devise:i18n:views user.

Specifically, the problem is related to files such as app/views/users/passwords and app/views/users/confirmations/new.

Before

<%= render "devise/shared/error_messages", resource: resource %>

After

<%= render "users/shared/error_messages", resource: resource %>

As for the code changes, I referred to the devise code in the following link.
devise/views_generator.rb at main · heartcombo/devise

Sincerely.

@JasonBarnabe JasonBarnabe merged commit d27be6f into tigrish:master Jul 8, 2022
@JasonBarnabe
Copy link
Collaborator

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants