[Rails-core] [PATCH] (+tests) with_scope :order doesn't work with included associations

2006-08-01 Thread Eric Kidd
(I've had this patch lying around for a couple of weeks, waiting for Trac to come back up. noradio's already had a look at it on IRC, and I sent it to [EMAIL PROTECTED] a while ago. What's the best way to submit patches while Trac is down? Thank you for any advice on how to do this!) with

Re: [Rails-core] error on ticket submit

2006-08-01 Thread Jeremy Kemper
On Aug 1, 2006, at 1:34 PM, Michael Genereux wrote: Are all new, noncritical patches on hold for right now pending the new ticket page? I've started editing documentation in the core Rails classes to make them more clear, fix typos, and in some cases, fill in undocumented public methods. S

Re: [Rails-core] Patch #4353: MySQL Integer Types

2006-08-01 Thread Caio Chassot
0 On 2006-08-01, at 17:06 , Steven Hammond wrote: It looks like #5489 is also related. Is there value in trying to pull all of this together into a single patch and a single ticket? I think it's a good idea. If only to to pick the best patch, or best part of each. I did such a ticket co

Re: [Rails-core] error on ticket submit

2006-08-01 Thread Michael Genereux
Are all new, noncritical patches on hold for right now pending the new ticket page? I've started editing documentation in the core Rails classes to make them more clear, fix typos, and in some cases, fill in undocumented public methods. Speaking of which, is this what David wanted at RailsCon

[Rails-core] has_one association caching

2006-08-01 Thread Michael A. Schoen
I know this was discussed a while back, but I couldn't find the thread. Issue is that has_one associations don't cache nils, whereas has_many do cache the empty array. Causes a big performance issue when you do things like: class People < ActiveRecord::Base has_one :thing end Person

Re: [Rails-core] Patch #4353: MySQL Integer Types

2006-08-01 Thread Steven Hammond
It looks like #5489 is also related. Is there value in trying to pull all of this together into a single patch and a single ticket? Thanks, Steve Caio Chassot wrote: On 2006-08-01, at 08:36 , Steven Hammond wrote: I submitted patch #4353 quite a while ago to allow the use of bigint i

Re: Re: [Rails-core] bug in new map.resources

2006-08-01 Thread David Heinemeier Hansson
Just checking... You think that code that is less readable and more tedious to write is an advantage? I guess from the perspective of macro-optimization vs micro-optimization I wouldn't argue with you, but I think that's a hell of a way to encourage people to do the right thing. If going restful

Re: [Rails-core] error on ticket submit

2006-08-01 Thread Rob Sanheim
On 8/1/06, Caio Chassot <[EMAIL PROTECTED]> wrote: On 2006-08-01, at 03:59 , Kamil Kukura wrote: > I wanted to submit ticket but no success. I got following stack trace: Isn't it maybe a good idea to take the new ticket page down for the moment? I'm sure a lot of people are posting reports on

Re: [Rails-core] bug in new map.resources

2006-08-01 Thread Benjamin Curtis
On Aug 1, 2006, at 5:49 AM, Benjamin Curtis wrote: --Benjamin Curtishttp://www.bencurtis.com/http://www.tesly.com/ -- Collaborative test case managementhttp://www.agilewebdevelopment.com/ -- Resources for the Rails community On Jul 31, 2006, at 9:33 PM, Josh Susser wrote:On Jul 31, 2006, at 8:33 P

Re: [Rails-core] bug in new map.resources

2006-08-01 Thread Benjamin Curtis
--Benjamin Curtishttp://www.bencurtis.com/http://www.tesly.com/ -- Collaborative test case managementhttp://www.agilewebdevelopment.com/ -- Resources for the Rails community On Jul 31, 2006, at 9:33 PM, Josh Susser wrote:On Jul 31, 2006, at 8:33 PM, David Heinemeier Hansson wrote: When do you feel

Re: [Rails-core] Patch #4353: MySQL Integer Types

2006-08-01 Thread Caio Chassot
On 2006-08-01, at 08:36 , Steven Hammond wrote: I submitted patch #4353 quite a while ago to allow the use of bigint integer types in MySQL. Also see: http://dev.rubyonrails.org/ticket/5483 http://dev.rubyonrails.org/ticket/5484 ___ Rails-core

Re: [Rails-core] error on ticket submit

2006-08-01 Thread Caio Chassot
On 2006-08-01, at 03:59 , Kamil Kukura wrote: I wanted to submit ticket but no success. I got following stack trace: Isn't it maybe a good idea to take the new ticket page down for the moment? I'm sure a lot of people are posting reports only to be greeted with an error, and that's a wa

[Rails-core] Patch #4353: MySQL Integer Types

2006-08-01 Thread Steven Hammond
Hi there, MySQL doesn't use the :limit option like most other databases do. In MySQL :limit sets the number of characters displayed, not the number of bytes in a column. MySQL uses different integer types for this purpose. See http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html for a

[Rails-core] error on ticket submit

2006-08-01 Thread Kamil Kukura
I wanted to submit ticket but no success. I got following stack trace: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 314, in dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.4/site-packages/trac/web/main.py"