I was wondering which generators (in particular view generators) you guys would recommend to replace the built-in code from the scaffolding system? I''m particularly interested in replacing the current views, as I would like for: 1) Foreign keys should get a dropdown list linked to the other table instead of a textbox. 2) I''d like the columns to actually be listed on the page, instead of iterating through them at run-time, as this makes it easier to customize them. Any thoughts? --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Well as the point of the scaffold generator is to get you a starting place when learning Rails, or doing something simple, I think it serves it''s job quite well. Scaffolding is never and was never meant to be a production site generation recipe. That said, I believe the AjaxScaffold has a bit more of the functionality you''re looking for, otherwise you are free to jump into the scaffold and make those changes yourself. However, I highly doubt such stuff will be added to the Rails core as it is superfluous. Jason On 7/2/07, Will Gant <williamwgant-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> > I was wondering which generators (in particular view generators) you guys > would recommend to replace the built-in code from the scaffolding system? > I''m particularly interested in replacing the current views, as I would like > for: > 1) Foreign keys should get a dropdown list linked to the other table > instead of a textbox. > 2) I''d like the columns to actually be listed on the page, instead of > iterating through them at run-time, as this makes it easier to customize > them. > > Any thoughts? > > ------------------------------ > Yahoo! oneSearch: Finally, mobile search that gives answers<http://us.rd.yahoo.com/evt=48252/*http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC>, > not web links. > > >--~--~---------~--~----~------------~-------~--~----~ 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 was just thinking that if I could push the scaffolding a bit further, it would get rid of about half the stuff I do in every project (making dropdowns for foreign keys, inferring relationships between models, using better markup). Has anyone tried Custom_Scaffold? I was thinking I could customize it to do most of what I need: http://www.tonyspencer.com/2007/03/01/custom-scaffolding-for-rails/ Will Jason Roelofs <jameskilton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: Well as the point of the scaffold generator is to get you a starting place when learning Rails, or doing something simple, I think it serves it''s job quite well. Scaffolding is never and was never meant to be a production site generation recipe. That said, I believe the AjaxScaffold has a bit more of the functionality you''re looking for, otherwise you are free to jump into the scaffold and make those changes yourself. However, I highly doubt such stuff will be added to the Rails core as it is superfluous. Jason On 7/2/07, Will Gant <williamwgant-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: I was wondering which generators (in particular view generators) you guys would recommend to replace the built-in code from the scaffolding system? I''m particularly interested in replacing the current views, as I would like for: 1) Foreign keys should get a dropdown list linked to the other table instead of a textbox. 2) I''d like the columns to actually be listed on the page, instead of iterating through them at run-time, as this makes it easier to customize them. Any thoughts? --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. --------------------------------- It''s here! Your new message! Get new email alerts with the free Yahoo! Toolbar. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Have you tried out ActiveScaffold? http://activescaffold.com I''ve just started using it, and it looks very promising. Jason Roelofs wrote:> Well as the point of the scaffold generator is to get you a starting > place when learning Rails, or doing something simple, I think it > serves it''s job quite well. Scaffolding is never and was never meant > to be a production site generation recipe. > > That said, I believe the AjaxScaffold has a bit more of the > functionality you''re looking for, otherwise you are free to jump into > the scaffold and make those changes yourself. However, I highly doubt > such stuff will be added to the Rails core as it is superfluous. > > Jason > > On 7/2/07, *Will Gant* <williamwgant-/E1597aS9LQAvxtiuMwx3w@public.gmane.org > <mailto:williamwgant-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>> wrote: > > I was wondering which generators (in particular view generators) > you guys would recommend to replace the built-in code from the > scaffolding system? I''m particularly interested in replacing the > current views, as I would like for: > 1) Foreign keys should get a dropdown list linked to the other > table instead of a textbox. > 2) I''d like the columns to actually be listed on the page, instead > of iterating through them at run-time, as this makes it easier to > customize them. > > Any thoughts? > > ------------------------------------------------------------------------ > Yahoo! oneSearch: Finally, mobile search that gives answers > <http://us.rd.yahoo.com/evt=48252/*http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC>, > not web links. > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---