Last active
August 8, 2020 16:40
-
-
Save TayKangSheng/05c9ccc506f2a4159bf55e976658513b to your computer and use it in GitHub Desktop.
basic steps for starting a new rails app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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