This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 125062

Summary: Improve "Go to definition" for rails
Product: ruby Reporter: fabian_e <fabian_e>
Component: NavigationAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: blocker CC: pjiricka
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description fabian_e 2008-01-10 21:18:56 UTC
- Jump to models: At the moment it's possible to jump to the definition of an activerecord class, but only if it's
written uppercase. But it's much more interesting to jump to the model definitions from usages like belongs_to or
has_many. In these cases the model definition is lowercase and sometimes pluralized so the "go-to-definition" doesn't
work. The idea would be to either expand the "go-to-definition" to catch the lower case and pluralized usages as well or
to have a new feature "go-to-model" which takes the current object and tries to find the fitting model (by stripping the
s or uppercasing...). The rails.vim extension has a similar feature which allows you to use gf to jump through the
project (but VIM is not an IDE).
Comment 1 Petr Jiricka 2008-01-11 08:34:11 UTC
Sounds like an enhancement request to me, not a defect.