tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.1k stars 383 forks source link

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

Closed vicramon closed 6 years ago

vicramon commented 6 years ago

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 commented 6 years ago

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

vicramon commented 6 years ago

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.

vicramon commented 6 years ago

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

tpope commented 6 years ago

Your issue was correct and should now be fixed.

vicramon commented 6 years ago

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