Victor Fan
2006-May-26 14:50 UTC
[Rails] What is the different between Scaffold / Controller / Model
Hi everyone I am learning RoR now and got a question. What is the different between using ruby script/generate <Table> Scaffold / Controller / Model? Thank you Victor -- Posted via http://www.ruby-forum.com/.
Victor Fan
2006-May-26 15:10 UTC
[Rails] Re: What is the different between Scaffold / Controller / Mo
In my understanding, Calling ruby script/generate scaffold will generate the controller, model and the view automatically. Then the different between controller and model is that controller is responsible to interact with the user, and the model is using to store the state of the application. Is this the correct interpretation? Thank you very much Victor -- Posted via http://www.ruby-forum.com/.
Mike Oligny
2006-May-26 15:16 UTC
[Rails] What is the different between Scaffold / Controller / Model
On 26-May-06, at 9:50 AM, Victor Fan wrote:> Hi everyone > > I am learning RoR now and got a question. > What is the different between using ruby script/generate <Table> > Scaffold / Controller / Model?There are entire books dedicated to answering this question. Have you tried following one of the many online Rails tutorials? http://rubyonrails.org/docs
Victor Fan
2006-May-26 15:29 UTC
[Rails] Re: What is the different between Scaffold / Controller / Mo
Mike Oligny wrote:> There are entire books dedicated to answering this question. > > Have you tried following one of the many online Rails tutorials? > > http://rubyonrails.org/docsThank you Mike In fact, I am reading Agile Web Development with Rails right now but kindda confused about it. Victor -- Posted via http://www.ruby-forum.com/.
Mike Oligny
2006-May-26 15:31 UTC
[Rails] Re: What is the different between Scaffold / Controller / Mo
On 26-May-06, at 10:29 AM, Victor Fan wrote:> Mike Oligny wrote: > >> There are entire books dedicated to answering this question. >> >> Have you tried following one of the many online Rails tutorials? >> >> http://rubyonrails.org/docs > > Thank you Mike > > In fact, I am reading Agile Web Development with Rails right now but > kindda confused about it.Have you followed through making the sample Depot application in that book? Try and forge ahead even if it doesn''t all make sense immediately - I assure you it will eventually "click". (:
Victor Fan
2006-May-26 15:38 UTC
[Rails] Re: Re: What is the different between Scaffold / Controller
Mike Oligny wrote:> Have you followed through making the sample Depot application in that > book? > > Try and forge ahead even if it doesn''t all make sense immediately - I > assure you it will eventually "click". (:Thankz Mike, I will continue the tutorial in the book then. :) Victor -- Posted via http://www.ruby-forum.com/.
Mike Oligny
2006-May-26 15:42 UTC
[Rails] Re: What is the different between Scaffold / Controller / Mo
On 26-May-06, at 10:31 AM, Mike Oligny wrote:> Have you followed through making the sample Depot application in > that book? > > Try and forge ahead even if it doesn''t all make sense immediately - > I assure you it will eventually "click". (:By the way, I''m not trying to discourage you from asking questions here - it''s just that your question was very broad and a lot of people have already taken the time to write out very detailed explanations / tutorials on Rails fundamentals. If the Agile book isn''t doing it for you, take a break and try a different source maybe, or work out some specific questions to ask here. Wikipedia has a fairly concise description of Model / View / Controller that might help you: http://en.wikipedia.org/wiki/Ruby_on_rails
Victor Fan
2006-May-26 15:48 UTC
[Rails] Re: Re: What is the different between Scaffold / Controller
Mike Oligny wrote:> > By the way, I''m not trying to discourage you from asking questions > here - it''s just that your question was very broad and a lot of > people have already taken the time to write out very detailed > explanations / tutorials on Rails fundamentals. If the Agile book > isn''t doing it for you, take a break and try a different source > maybe, or work out some specific questions to ask here. > > Wikipedia has a fairly concise description of Model / View / > Controller that might help you: > > http://en.wikipedia.org/wiki/Ruby_on_railsCool! That''s exactly what I need! Thankz again :) Victor -- Posted via http://www.ruby-forum.com/.
Chris Hall
2006-May-26 18:14 UTC
[Rails] What is the different between Scaffold / Controller / Model
A scaffold in the RoR sense is a minimal framework created by RoR (if you choose) for you to expand upon. it gives you basic CRUD (create, read, update, delete) abilities. you can''t really understand controller and model without understanding the MVC pattern, which is model-view-controller. http://en.wikipedia.org/wiki/Model-view-controller On 5/26/06, Victor Fan <vlkfan@yahoo.ca> wrote:> > Hi everyone > > I am learning RoR now and got a question. > What is the different between using ruby script/generate <Table> > Scaffold / Controller / Model? > > Thank you > > Victor > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060526/6243709f/attachment.html