Re: Re: [Rails-core] [ann] Super DRY models - Auto-associations and validations

2006-08-15 Thread choonkeat
would be to use via a more standalone script like script/console (e.g. script/sql ) where I can connect to any db and immediately get models and benefits of AR... then perhaps I really won't have to enter the mysql prompt anymore.On 8/15/06, Kyle Maxwell < [EMAIL PROTECTED]> wrote:> If all this di

Re: [Rails-core] [ann] Super DRY models - Auto-associations and validations

2006-08-15 Thread Martin Emde
On 8/14/06, Andrew Kaspick <[EMAIL PROTECTED]> wrote: If all this did was generate the base model with the associations andvalidations then that would definitely relieve some initialdevelopment time and possibily worthy of core inclusion.It can't really be included with script/generate model since

Re: [Rails-core] [ann] Super DRY models - Auto-associations and validations

2006-08-15 Thread Nic Williams
@Andrew and Kyle: I've started a magic_model_generator that will be released after a foreign key support patch. That'll be a wonderful tool. Not very magical, but useful... non-magically.@DHH and Andrew : I agree with that - in a normal app development, you'll always want a model class and explicit

Re: Re: [Rails-core] [ann] Super DRY models - Auto-associations and validations

2006-08-15 Thread David Heinemeier Hansson
Its probably a style preference for agile developers as to whether they are happy to immediately start work with derived associations (like the derived attr_accessors for fields in ARs now) instead of explicitly defining them. "Opinions" are great; so is choice. :) I agree. With Rails, the split

[Rails-core] Thoughts on Rails development

2006-08-15 Thread Benjamin Curtis
Here are some thoughts I had as a result of the fun from last week: http://www.bencurtis.com/archives/2006/08/rails-is-growing-up/.  I'd be delighted to hear any feedback from subscribers to this list.--Benjamin Curtishttp://www.bencurtis.com/http://www.tesly.com/ -- Collaborative test case managem

Re: [Rails-core] AWS patch for unit tests

2006-08-15 Thread David Heinemeier Hansson
Done! On 8/14/06, Kent Sibilev <[EMAIL PROTECTED]> wrote: Hi, Since the trac appears to be down, I'm posting this patch to the list. This patch fixes AWS's unit test suite and makes it up to date with the latest changes in the actionpack framework. Can somebody from the rails core team apply i

[Rails-core] Rails AR/Oracle Unit Test: [4767] failed (getting worse)

2006-08-15 Thread Michael Schoen
"bitsweat" has kicked AR/Oracle while it was down... http://dev.rubyonrails.org/changeset/4767 r4767 | bitsweat | 2006-08-15 16:05:01 -0700 (Tue, 15 Aug 2006) | 1 line Migrations: uniquely name multicolumn indexes so you don

[Rails-core] Rails AR/Oracle Unit Test: [4768] failed (but getting better)

2006-08-15 Thread Michael Schoen
"bitsweat" has given AR/Oracle some love, but it's still unhappy... http://dev.rubyonrails.org/changeset/4768 r4768 | bitsweat | 2006-08-15 16:51:27 -0700 (Tue, 15 Aug 2006) | 1 line Make indexed columns easy to extract from

[Rails-core] More changes to cascading associations

2006-08-15 Thread Rich Collins
I added additional fixes to recursively cascading associations. This patch includes fixes for has_many :through and habtm (with tests) as well as tests for has_one and belongs_to. I created some new models for testing and added the required sql for creating and dropping the tables. This

[Rails-core] test::unit namespace pollution

2006-08-15 Thread court3nay
Background: I've got an app that doesn't use the DB (long story..) and running tests is certainly a chore when you don't have any DB connection. Also, due to the way rails extends TestCase, running tests in your suite that aren't tied to AR can have issues. Part of the solution involved re

Re: [Rails-core] More changes to cascading associations

2006-08-15 Thread Jeremy Kemper
Is this a patch against trunk, which includes your previous patch?On 8/15/06, Rich Collins <[EMAIL PROTECTED] > wrote:I added additional fixes to recursively cascading associations.  This patch includes fixes for has_many :through and habtm (with tests) aswell as tests for has_one and belongs_to.  

Re: [Rails-core] test::unit namespace pollution

2006-08-15 Thread David Heinemeier Hansson
I propose that rails' test class inherits from, rather than extends, Text::Unit::TestCase. Opinions? That's been a long-standing desire. Especially also to clean up the cruft in functional test controllers. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www

Re: [Rails-core] test::unit namespace pollution

2006-08-15 Thread Jeremy Kemper
On 8/15/06, court3nay <[EMAIL PROTECTED]> wrote: Background: I've got an app that doesn't use the DB (long story..)and running tests is certainly a chore when you don't have any DBconnection.Also, due to the way rails extends TestCase, running tests in  your suite that aren't tied to AR can have is

Re: [Rails-core] More changes to cascading associations

2006-08-15 Thread Rich Collins
Yes.  I did an update before I did the diff.On Aug 15, 2006, at 9:18 PM, Jeremy Kemper wrote:Is this a patch against trunk, which includes your previous patch?On 8/15/06, Rich Collins <[EMAIL PROTECTED] > wrote:I added additional fixes to recursively cascading associations.  This patch includes fix

Re: [Rails-core] More changes to cascading associations

2006-08-15 Thread Jeremy Kemper
On 8/15/06, Rich Collins <[EMAIL PROTECTED]> wrote: Yes.  I did an update before I did the diff.Ah, appears the attachment is the same diff as the last patch. Could you pass along the new patch?Thanks,jeremy On Aug 15, 2006, at 9:18 PM, Jeremy Kemper wrote: Is this a patch against trunk, which incl