Cannot find before_action (RubyMine 8 EAP)

RubyMine 8 Kusunoki EAP (build 142.4465)

I have multiple projects in git.
I confgiure multiple roots in RubyMine project
Index was created without issues.
I can use go to Declaration and so on.

When I open one of my controllers I have warning about "Cannot find before_filter", but all filters are present in this file.
Screen Shot 2015-09-08 at 11.15.59.pngScreen Shot 2015-09-08 at 11.16.58.png

Screen Shot 2015-09-08 at 11.17.54.png

5 comments
Comment actions Permalink

Hello Ivan,

could you please tell me where 'Go to declaration' leads from before_filter/before_action (a screenshot would be great)

0
Comment actions Permalink

If I understood you right, I have pressed command+b for "Go to declaration" action.
Screen Shot 2015-09-08 at 20.54.35.png

0
Comment actions Permalink

I have test this in fresh generated project, and its works fine. When I choose Go to Declaration, callbacks.rb file opened. And no warnings.
May be issue when you include(add) additional root folder to project?

0
Comment actions Permalink

I have create new empty project and add previous one as new content root. I have this issue reproduced.
Screen Shot 2015-09-08 at 21.10.39.pngScreen Shot 2015-09-08 at 21.12.07.png

0
Comment actions Permalink

Hi,

I might be wrong (because I do not see the whole structure you have) but RubyMine is rather simple IDE and it usually presumes that there is only one application for one project.  In your case I'd suggest to create several projects (one fore every application you have in the git repo) and open them all in one window.

Hope this helps, Oleg.

0

Please sign in to leave a comment.