I am using TextMate on a Ruby on Rails project and wonder if you can put the mouse on link_to, and then press a key and it will show the definition of link_to, or does this for any other helper functions or Model definition?
Or, click open a box and type in a function name and it will show you the definition?
Make sure that you are in file with
the language grammar set to either
Ruby or RoR (verify by checking the “L” field in TM’s status bar)
Then highlight a function name whose
definition you want (e.g., w/ your
cursor just before the first letter
of that function:
shift-option-right arrow)
Ctrl-H will usually bring up a menu of two options “Ruby:
Documentation for Selection” and
“RoR View Demo Help”, which you can
select by pressing “1” or “2”
Pressing “1” will bring up the
function’s definition found in the Ruby
Docs