:rocket: Best practices for developing with Rails
Always, always manually test what you’re building in development. It’s extremely important to have a fast feedback loop. Testing on staging or production is slow. If it’s not easy to test in development, spend time to make it easy.
Use aliases for common commands. Here are a few of my favorites:
# rails alias rc="bin/rails console" alias dbm="bin/rails db:migrate" alias dbr="bin/rails db:rollback" alias fsw="foreman start -c web=1" # git alias gl="git pull -r" alias gc="git commit" alias gco="git checkout" alias gcm="git checkout master"