Can anyone supply me with a simple, succinct explanation of what the
difference is between the “new” controller and the “create” controller
that the scaffold generator produces?
script/generate scaffold modelname controllername
And now I need to do some work inside the controllername.rb file. For
example, pulling a list from another database table to supply for a
drop-down select in the “create a new whatsit” form.
@sprockets = Sprocket.find(:all)
Do I put this in new or create? Why? I’ve been floundering around on
this for some time, and I’ve not been confident that what I’m doing is
the right way, is efficient as far as programmer hours, or will scale
correctly in production.