added rails api and rspec sample