Drilling into class hierarchy of rails application? (ActionController::Base)

Drilling into class hierarchy of rails application.

I want to drill into [ActionController::Base] and explore the class.

I highlight [ActionController::Base] from my application_controller.rb
class ApplicationController < ActionController::Base

[View] -> [Type Hiearchy]

Cool,  I see one class (ActionController::Base) and a bunch of modules.
Just what I wanted.

Then Highlight ActionController::Base (Multiple Declarations)
   [Jump to Source]

This file appears
/opt/RubyMine-98.47/rubystubs19/rails_definitions.rb
================================
# Created by IntelliJ IDEA.
# User: romeo
# Date: Dec 15, 2007

=begin
This is a stub used for indexing
=end

module ActionController
class Base
# stub
end
end
================================

But I'm trying to get to
.../gems/actionpack-3.0.0.rc2/lib/action_controller/base.rb

================================
require "action_controller/log_subscriber"

module ActionController
class Base < Metal
abstract!

================================

Help please.
Thank you.

I do believe RubyMine is the best of kind I've found so far.
I'm expecting to purchase it when 2.5 is released.

2 comments

This is odd.  I've had the stub show up sometime and real code show up sometime.

0

Hello Craig,

Indeed RubyMine uses stubs for it's internal codeinsight purposes.
There are 2 kinds of stubs used: skeletons of runtime core classes, which are compiled into native code, and some artificial skeletons which you mentioned in previous message.
Maybe we can just do not navigate to the second kind of stubs.

Regards,
Oleg

0

Please sign in to leave a comment.