Skip to content

Instantly share code, notes, and snippets.

@TayKangSheng
Last active August 8, 2020 16:40
Show Gist options
  • Save TayKangSheng/05c9ccc506f2a4159bf55e976658513b to your computer and use it in GitHub Desktop.
Save TayKangSheng/05c9ccc506f2a4159bf55e976658513b to your computer and use it in GitHub Desktop.
basic steps for starting a new rails app
# starting a new rails app
# - use minitest
# - use postgresql
rails new MyApp --database=postgresql
# install helpful gems
bundle add slim-rails
bundle add shoulda-context -g test
bundle add shoulda-matchers -g test
# create models
bin/rails g model Post title:string body:text published:boolean
# create controllers
bin/rails g controller Posts index show new edit update destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment