[Rails-core] Re: Improvements to scaffold generated html

2007-06-02 Thread Erik Kastner
+1 I had made a patch for this a while back. I also think that the forms should be in a partial - especially now that simply_helpful is rolled in. On 6/2/07, Tyler McMullen <[EMAIL PROTECTED]> wrote: > +1. > > I never used scaffolds in the pre-1.2.3 days. But now, especially for > little internal

[Rails-core] Re: Improvements to scaffold generated html

2007-06-02 Thread Tyler McMullen
+1. I never used scaffolds in the pre-1.2.3 days. But now, especially for little internal utilities, they're quite useful. And to expand upon Pelle's point, yes, simple is good... But simple does not have to mean wrong. Theres no reason that things like label tags should not be included... -esp

[Rails-core] Re: Improvements to scaffold generated html

2007-06-02 Thread Pelle Braendgaard
I have thought about releasing it as a plugin, even though I'm thinking that Hampton Caitlin's make_resourceful might be the better option: http://hamptoncatlin.com/2007/make_resourceful-0-1-0-release One thing about the edge scaffold (or the previous resource_scaffold) is that many rails profess

[Rails-core] Re: Improvements to scaffold generated html

2007-05-31 Thread Mislav Marohnić
On 5/31/07, James Adam <[EMAIL PROTECTED]> wrote: > > > I imagine that many people would find scaffolding that highlights some > best practices a useful educational tool. Exactly! +1 for plugin with awesome scaffolding code. Rails professionals will always write their own code, naturally. But le

[Rails-core] Re: Improvements to scaffold generated html

2007-05-31 Thread James Adam
On 5/30/07, Ernest Prabhakar <[EMAIL PROTECTED]> wrote: > If so, I'd love to see this made into a plug-in, so we could work on > it further, and at least make it available to people who want it. > Have you considered that? It seems like this would be a great compromise; it's relatively easy to cr

[Rails-core] Re: Improvements to scaffold generated html

2007-05-30 Thread Ernest Prabhakar
Hi Pelle, On May 29, 2007, at 7:30 PM, Pelle Braendgaard wrote: > Hi, > I've added the following patch: > http://dev.rubyonrails.org/attachment/ticket/8514/ > use_content_tag_helper_in_scaffold.diff > > It cleans up the html generated by the scaffold generator. I think this is a great idea. Al

[Rails-core] Re: Improvements to scaffold generated html

2007-05-30 Thread Mislav Marohnić
On 5/30/07, Jeff <[EMAIL PROTECTED]> wrote: > > > I always end up > deleting most of the generated code because my projects always need > something different. Pelle's idea was to make generated code suck less so you have to delete less. Nice thought, but it was rejected. --~--~-~--~~

[Rails-core] Re: Improvements to scaffold generated html

2007-05-30 Thread Jeff
On May 29, 9:30 pm, "Pelle Braendgaard" <[EMAIL PROTECTED]> wrote: > Hi, > I've added the following > patch:http://dev.rubyonrails.org/attachment/ticket/8514/use_content_tag_hel... > > It cleans up the html generated by the scaffold generator. It doesn't > change anything major about the structu