Dynamic scaffolding lives outside of railties - it's in the actionpack/actioncontroller itself.
Wether having the generated scaffold and the dynamic scaffold so separate is DRY is something I have no clue about, since I haven't look at the generator code, and it could be one of those cases were trying to abstract them gets messy enough that it's worse than having them wet. I'm done with the big chunk of coding. In the next couple days, I'll put it up for review and then ask again how to proceed from there. I had been working on doing TDD, but since this was new enough, and I was copying and modifying a bunch of existing code that I needed to lear, I didn't right my tests yet, so I'll be doing the docs and testing after the initial development. I am also planning on trying to add a scaffold_resource_tests to run the basic REST tests that the generator gives us, if it doesn't prove to tricky. Ideally I'd like to let that function like the scaffold code - if you manually create a test it doesn't run the default one. Tim On 10/17/06, Neil Wilson <[EMAIL PROTECTED]> wrote: > > > Tim Connor wrote: > > Oh, one of my immediate questions, where are the tests for the > > scaffolding code? If I do a plug-in I'll obviously be doing my own, > > but it'd be > > The generator test code is unloved, and the 'railties' test suite fails > on trunk at the moment. > > I think it would be a useful exercise to get the generator test suite > up to scratch, but I'm loathed to dive in without some sort of > strategic steer from the core committers about where the generators are > going. > > There are a lot of 'railties' patches outstanding on Trac at the > moment. > > Core team - what do you want done? > > NeilW > > > > > -- ..do you know why George Bush is so pissed off at Arabs? They brought us algebra. --Kurt Vonnegut --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core -~----------~----~----~----~------~----~------~--~---
