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 on render lines in controller gives "file not found" #181

Closed
drasch opened this issue Sep 18, 2012 · 2 comments
Closed

gf on render lines in controller gives "file not found" #181

drasch opened this issue Sep 18, 2012 · 2 comments

Comments

@drasch
Copy link

drasch commented Sep 18, 2012

for example, in the file:
app/controllers/subscription_controllers.rb

on the render line below, with the cursor where the * is, if I type "gf" I then get the error
E345: Can't find file "app/views/subscription/subscribe_success" in path

however, if I run: ":e app/views/subscription/subscribe_success.rhtml", the file loads just fine. This works just fine for render :partial => lines when I'm editing a rhtml file.

def subscription_save
///.... SNIP

render :template => 'subscription/sub*scribe_success', :layout => current_secure_layout

end

@tpope tpope closed this as completed in 2d65581 Sep 18, 2012
@tpope
Copy link
Owner

tpope commented Sep 18, 2012

Fixed. Thanks for the heads up.

Side note: .rhtml? That's some serious legacy code. Having been deprecated five years ago, I don't officially support it.

@drasch
Copy link
Author

drasch commented Sep 18, 2012

Wow, thanks! That was fast.

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