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

Calling :Eview from within a mailer method does not open view #511

Closed
vicramon opened this issue Mar 10, 2018 · 5 comments
Closed

Calling :Eview from within a mailer method does not open view #511

vicramon opened this issue Mar 10, 2018 · 5 comments

Comments

@vicramon
Copy link

From within a normal controller method, calling :Eview opens the corresponding view file. But with mailers it does not work.

For example, with a UserMailer class, it tries this path: app/views/user/method_name when it should be app/views/user_mailer/method_name.

I would use this feature a lot if it existed.

@tpope
Copy link
Owner

tpope commented Mar 10, 2018

Don’t those views go in app/views/user_mailer? I’m probably behind the times.

@vicramon
Copy link
Author

Oh, they do, that's what I mean. Rails Vim is searching in app/views/user when it should be searching in app/views/user_mailer.

@tpope tpope closed this as completed in a817ac0 Mar 12, 2018
@vicramon
Copy link
Author

I'm confused, is my issue wrong or is this just a no-fix?

@tpope
Copy link
Owner

tpope commented Mar 12, 2018

Your issue was correct and should now be fixed.

@vicramon
Copy link
Author

vicramon commented Mar 12, 2018

Oh sweet, thanks! My bad, didn't notice the sha in the close message.

algert072 added a commit to algert072/vim-rails that referenced this issue Mar 5, 2022
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

No branches or pull requests

2 participants