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

gf command does not look for .html.erb extension when used on collection variables #586

Closed
kulbirsaini opened this issue May 13, 2022 · 2 comments

Comments

@kulbirsaini
Copy link

kulbirsaini commented May 13, 2022

Vim: 8.1.2269
Vim Rails: 9c92daf [May 05, 2022]
Ruby: 3.1.2
Rails: 7.0.2

As per title, the gf commands works fine everywhere except when you are on the instance collection variables. In that case, it somehow does not look up for .html.erb extension. A screenshot is attached.

vim-rails-bug

@tpope
Copy link
Owner

tpope commented May 13, 2022

'suffixesadd' takes care of .erb. The problem is _industries vs _industry.

@kulbirsaini
Copy link
Author

kulbirsaini commented May 13, 2022

Ah! You are right. The plugin is not able to handle collection renders. Tried with another controller <%= render @sectors %> and same issue. I am not sure if this is something that the plugin can handle in future. I updated the title and text in the original bug report.

@kulbirsaini kulbirsaini changed the title gf command does not look for .html.erb extension when used on instance variables gf command does not look for .html.erb extension when used on collection variables May 13, 2022
@tpope tpope closed this as completed in 7496444 Jun 8, 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