Hi, I am trying rails 2 and the dynamic scaffolding does not work. I wonder if the syntax changed or what? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Nov 4, 2007, at 4:04 PM, Arash wrote:> Hi, > I am trying rails 2 and the dynamic scaffolding does not work. I > wonder if the syntax changed or what?It''s been pulled: dev.rubyonrails.org/changeset/7429 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You can still get the same behavior by using the scaffold generator included with rails, only the ActionController#scaffold method has been removed. If you wanted scaffolding for the Product model, try running script/generate Product. If you run script/generate with no options, it will give you a quick help with examples. This is better anyway as it creates the controller with all of the relevant code included allowing you to see and change it. Hope this helps. -Bill On Nov 4, 2007, at 4:04 PM, Arash wrote:> > Hi, > I am trying rails 2 and the dynamic scaffolding does not work. I > wonder if the syntax changed or what? > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
William Pratt wrote:> You can still get the same behavior by using the scaffold generator > included with rails, only the ActionController#scaffold method has > been removed. If you wanted scaffolding for the Product model, try > running script/generate Product. If you run script/generate with no > options, it will give you a quick help with examples. This is better > anyway as it creates the controller with all of the relevant code > included allowing you to see and change it. > > Hope this helps. > > -BillAs far as i can tell, scaffold hasn''t been removed as such - instead its functionalty has been replaced with that of the old scaffold_resource, which is used to make a RESTful scaffold. In other words, the scaffold has been changed to be RESTful by default. This is going to break a lot of tutorials i think. Bill, have you experienced otherwise? -- 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 -~----------~----~----~----~------~----~------~--~---
Hi Arash IMHO, I think you would be better off looking at Active Scaffold. CCH http://cch4rails.blogspot.com On Nov 5, 8:04 am, Arash <aras...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > I am trying rails 2 and the dynamic scaffolding does not work. I > wonder if the syntax changed or what?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Max Williams wrote:> William Pratt wrote: >> You can still get the same behavior by using the scaffold generator >> included with rails, only the ActionController#scaffold method has >> been removed. If you wanted scaffolding for the Product model, try >> running script/generate Product. If you run script/generate with no >> options, it will give you a quick help with examples. This is better >> anyway as it creates the controller with all of the relevant code >> included allowing you to see and change it. >> >> Hope this helps. >> >> -Bill > > As far as i can tell, scaffold hasn''t been removed as such - instead its > functionalty has been replaced with that of the old scaffold_resource, > which is used to make a RESTful scaffold. In other words, the scaffold > has been changed to be RESTful by default. This is going to break a lot > of tutorials i think. Bill, have you experienced otherwise?I beg your pardon, Steve, dynamic scaffolding *has* been removed but the non-dynamic, generated scaffolding has merely been changed to the restful version. -- 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 -~----------~----~----~----~------~----~------~--~---