Rails Generators
Sep 20, 2021 · 3 min read · 1. Resource Generator (my favorite) Using the resource generator creates everything from controller to migration. Running rails g resource User username:string email:string age:integer will result in the following: # a user controller class UsersCont...
Join discussion