2o5dmq
Last Updated: February 25, 2016
·
602
· dfang
Img 0047

[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

Say Thanks
Respond

2 Responses
Add your response

13569
551589ca4995e1bb9e871dc6c8178547

Should be bundle show --paths I think, not bundler

over 1 year ago ·
16051
Img 0047

@bonsaiben, yes, mistype, corrected, thanks !

over 1 year ago ·