I am new to Ruby on Rails. I have seen two kinds of using scaffold 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/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
google rails scaffold ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> I am new to Ruby on Rails. I have seen two kinds of using scaffoldHi Irene, welcome to the community.> 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 > endThis style of scaffolding has been removed from Rails 2.0. It used to be referred to as dynamic scaffolding, but it didn''t really help people learn about Rails or give them a way to modify the generated interface, so we killed it.> 2) scaffold is run from MS-DOS command line as in: > ruby script/generate scaffold contact contactThis is the scaffold you want to use. If you run ''ruby script/generate scaffold'' you''ll get list of instructions on how to use it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---