I tried to put ignored setting in .vimrc
But when I used the ctrlp to search under rails app folder
ctrlp
It still search the vendor fold
vendor
You can use the wildignore vim setting which CtrlP will pick up on.
wildignore
set wildignore+=*\\vendor\\**