[killer tips]Search code in all bundled gems
sometimes when you're hacking source code in a rails project, you may wonder where a method is defined or something else, you can use grep/ack/ag with bundle show --paths, this can save you a lot of time, you don't need to guess ....
example use:
ag 'def confirmation_instructions' # search in current project source code
ag 'def confirmation_instructions' `bundle show --paths` # search in bundled gems
Written by fang
Related protips
2 Responses
Should be bundle show --paths
I think, not bundler
over 1 year ago
·
@bonsaiben, yes, mistype, corrected, thanks !
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Bundler
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#