Skip to content

Instantly share code, notes, and snippets.

@orangeeli
Last active May 26, 2016 06:24
Show Gist options
  • Save orangeeli/3fe37d844fbf34bcee261daadd2074ec to your computer and use it in GitHub Desktop.
Save orangeeli/3fe37d844fbf34bcee261daadd2074ec to your computer and use it in GitHub Desktop.
Starting a rails 5 api app
#!/bin/bash
# --api: flag to create an api only rails app
# --skip-active-record: Removes active record support
# --skip-sprockets: Removes Asset compilation support http://guides.rubyonrails.org/asset_pipeline.html
rails new api-example --api --skip-active-record --skip-sprockets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment