New to Rails Generate Controller & Model?
If you’ve gone or are going through a bootcamp (like I did), you were exposed to a lot in a short amount of time. I don’t know about you, but I sometimes felt that I was memorizing commands and patterns to keep up, instead of getting the time to build foundational understanding. Now that I have time to dig deeper, one thing I wanted to fundamentally understand instead of memorize was rails g controller and rails g model (g is a shorthand for generate in Ruby ).
This blog post will cover my current general understanding and hope that it will allow you to…