Add search controller on rails side