boiling memoir

journey of one man

One Liner to Go to Gem Directory

dirname gem which action_view | tail -1

Or

gem which action_view | tail -1 | sed -e's/^\(.*\/\).*$/\1/'

which allow you to either pushd or mate the directory, i.e.

pushd `gem which action_view | tail -1 | sed -e's/^\(.*\/\).*$/\1/'`