Not exactly what you're asking, but this Railscast can help.
It will teach you a trick that allows you to open a method in a text editor from the Rails console.
UPDATE:
, ... .
~/.irbrc
class Object
def mate(method_name)
file, line = method(method_name).source_location
'mate '
end
end
... mate - CLI TextMate (, subl Sublime Text).
helper.mate(:number_to_currency)
... number_to_currency - , .
, , Railscast Pro. , 9 . , , , , .