setting up rails server & serving json