Added favorites on rails back-end