Option 1: Using a subshell
This is the easiest solution
vi $(bundle show activerecord)
Or
vi `bundle show activerecord`
Option 2: Using xargs
This is the slightly more 'bashy' way of doing things but for such a simple case, its probably overkill.
bundle show activerecord | xargs vim