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/'`
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/'`