Hello everyone, Does scaffold still work in the new rails 2.0? Thank you, --~--~---------~--~----~------------~-------~--~----~ 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 read that it is not. Is there any alternative (another command) to it? Or do you just have to type it out? On Sep 2, 12:04 pm, "Mr. Watson" <graphett...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello everyone, > > Does scaffold still work in the new rails 2.0? > > Thank you,--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
http://fairleads.blogspot.com/2007/12/rails-20-and-scaffolding-step-by-step.html On Sep 2, 1:07 pm, "Mr. Watson" <graphett...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I read that it is not. Is there any alternative (another command) to > it? Or do you just have to type it out? > > On Sep 2, 12:04 pm, "Mr. Watson" <graphett...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hello everyone, > > > Does scaffold still work in the new rails 2.0? > > > Thank you,--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, On Sep 2, 2008, at 7:07 PM, Mr. Watson wrote:> > I read that it is not. Is there any alternative (another command) to > it? Or do you just have to type it out? > > On Sep 2, 12:04 pm, "Mr. Watson" <graphett...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Hello everyone, >> >> Does scaffold still work in the new rails 2.0? >> >> Thank you,Scaffolding still works. The only (albeit somewhat largish) change is that the "new" scaffolding now generates RESTful controllers. If you want old-style controllers (or if you need to augment the generated controllers with yet more actions), you have to code it yourself. Regards Martin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Martin Eisenhardt pisze:> > > Scaffolding still works. The only (albeit somewhat largish) change is > that the "new" scaffolding now generates RESTful controllers. If you > want old-style controllers (or if you need to augment the generated > controllers with yet more actions), you have to code it yourself. > > Regards > Martin > > >Or use plugin ! :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
The other big change in 2 is that you need to type out name:datatype pairs on the call to generate, like so: script/generate scaffold Product name:string available_at:date vendor:string description:text HTH, -Roy -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] On Behalf Of Martin Eisenhardt Sent: Tuesday, September 02, 2008 11:41 AM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: Scaffolding Hi, On Sep 2, 2008, at 7:07 PM, Mr. Watson wrote:> > I read that it is not. Is there any alternative (another command) to > it? Or do you just have to type it out? > > On Sep 2, 12:04 pm, "Mr. Watson" <graphett...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Hello everyone, >> >> Does scaffold still work in the new rails 2.0? >> >> Thank you,Scaffolding still works. The only (albeit somewhat largish) change is that the "new" scaffolding now generates RESTful controllers. If you want old-style controllers (or if you need to augment the generated controllers with yet more actions), you have to code it yourself. Regards Martin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
One more difference is that you can create scaffolds through script/ generate but you cannot call a scaffold from the controller like you used to be able to do. On Sep 2, 10:04 am, "Mr. Watson" <graphett...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello everyone, > > Does scaffold still work in the new rails 2.0? > > Thank you,--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---