Create a rails api and work with json and several gems