1) In a controller class to bind controller to its respective model as
in
class ContactController < ApplicationController
scaffold contact # contact here is the name of the model called
contact
end
2) scaffold is run from MS-DOS command line as in:
ruby script/generate scaffold contact contact
When do you scaffold inside a class and when do you run scaffold from
command-line? Are there any other ways in which scaffold is done?
Thanks!
--
Posted via http://www.ruby-forum.com/.