updated rails app with a rails controller and some actions that respond to json