Can't navigate to related view from controller action #158

Closed
samnang opened this Issue Apr 24, 2012 · 4 comments

Comments

Projects
None yet
3 participants

samnang commented Apr 24, 2012

I can't use :R to go to related haml view from controller action, but it works fine if I use :Rview. And it also work if I use ]f for whenever my cursor on action name.

Here what I got when I use :R

E345: Can't find file "app/views/groups/index.html" in path
Owner

tpope commented Apr 24, 2012

What is the exact file name of the view?

On Tuesday, April 24, 2012, Samnang Chhun wrote:

I can't use :R to go to related haml view from controller action, but it
works fine if I use :Rview. And it also work if I use ]f for whenever
my cursor on action name.

Here what I got when I use :R

E345: Can't find file "app/views/groups/index.html" in path


Reply to this email directly or view it on GitHub:
#158

samnang commented Apr 24, 2012

What is the exact file name of the view?

It is app/views/groups/index.html.haml.

bronson commented May 3, 2012

I'm having the same thing moving from the all method in controllers/api_controller to views/api/all.jbuilder

Is it because of the nonstandard extension?

Owner

tpope commented May 3, 2012

Actually now that you mention it, it's the exact opposite. I removed all view extension special casing, but forgot to update the related function to take that into account. Easy fix.

tpope closed this in 04c7b18 May 3, 2012

@dennisjbell dennisjbell added a commit to RubidiumStudios/vim-rails that referenced this issue Jun 18, 2012

@tpope @dennisjbell tpope + dennisjbell Fix related file for controller action
Closes #158.
87e02c8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment