Skip to content

Instantly share code, notes, and snippets.

@tatethurston
Last active November 19, 2017 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatethurston/e5b0ff68a4f3358912ebba46c0b98a13 to your computer and use it in GitHub Desktop.
Save tatethurston/e5b0ff68a4f3358912ebba46c0b98a13 to your computer and use it in GitHub Desktop.
Rails 5 API setup
NAME=''
rails new $NAME \
--api \
--database=postgresql \
--skip-action-cable
cd $NAME
rm -rf \
app/views/ \
app/{controllers,models}/concerns/ \
test/fixtures/ \
vendor/ \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment