I'm just figuring out my way around rails but I need a little help with the rails generate scaffold
command.
Here's the command that I'd like to use
rails generate scaffold Expense user:??? name:string description:text
I'd like the description
field to be nullable and the users
field to be linked to another Model — in this case I'd like to create a foreign key to the Users. I'm using the devise
authentication framework.
I've read that many RoR developers try and avoid the scaffolding method and opt for the manual approach instead but my web-app is quite simple and I've thought of going the scaffolding way.