I’ve gone over the tutorial, used the scaffold command to make a model, etc.
I noticed that it mentioned more experienced programmers would probably create all their models from scratch… What is the “appropriate” way to do so?
If it’s a simple answer and I’m just Googlin’ the wrong keywords, I apologize in advance.
Open your text editor to
app/models/modelname.rband start typing. 🙂Until you’re that good though,
script/generate model <modelname>is there for you: http://en.wikibooks.org/wiki/Ruby_on_Rails/Built-In_Rails_Tools/Generators