RubyMine cannot find gem-defined methods

Hi all,

Is there a way to have RubyMine recognize methods that are defined by a gem? For example, I am using Devise and CanCan. Devise methods such as user_signed_in? RubyMine cannot find. It can't even find its declaration but of course the method works just find in all environments. Even routes defined by Devise like user_session_path are unrecognized. In CanCan, resource variables are unknown after they have been initialized by CanCan's load_resource method. Interestingly, this method is found.

Forgive me if this has been answered already. I assumed it would have been but I could not find it in a search.

1 comment

Hi,

in theory, all you need is to add these gems to your Gemfile. In practice we may fail to find methods either because of our bugs or
because we do not understand meta-programming magic which is used to define them.  In both cases you are welcome to file a tickets in our tracker http://youtrack.jetbrains.com/issues/RUBY
with simple test projects provided.

Regards, Oleg.

0

Please sign in to leave a comment.