added rails-api gem to the gemfile