I am running
ruby script/generate scaffold
or
ruby script/generate model
and I know the basic syntax, like
ruby script/generate scaffold Dude name:string face:boolean
but I do not know things like:
Where can I find such information?
Type the command without arguments and the documentation is revealed:
$ script/generate model
You can use either camelcase or underscores for the model name.
I can't remember all the possible field types, I just look them up from the Migration docs, as linked above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With