Re: [Rails-core] Elegant solutions to multi-part ajax file uploads?

2006-07-20 Thread Chris McGrath
On 20 Jul 2006, at 23:35, Ezra Zygmuntowicz wrote:On Jul 20, 2006, at 3:17 PM, Shanti Braford wrote:Kyle Maxwell has a workaround plugin for the problem of form_tag_remote with multipart file uploads: http://svn.kylemaxwell.com/form_remote_upload/trunk/ I just finished dealing with this exact situa

Re: [Rails-core] Elegant solutions to multi-part ajax file uploads?

2006-07-20 Thread Ezra Zygmuntowicz
On Jul 20, 2006, at 3:17 PM, Shanti Braford wrote:Hey all,I haven't seen much discussion on this yet here so I thought I'd bring it up.Kyle Maxwell has a workaround plugin for the problem of form_tag_remote with multipart file uploads: http://svn.kylemaxwell.com/form_remote_upload/trunk/To those un

[Rails-core] Elegant solutions to multi-part ajax file uploads?

2006-07-20 Thread Shanti Braford
Hey all,I haven't seen much discussion on this yet here so I thought I'd bring it up.Kyle Maxwell has a workaround plugin for the problem of form_tag_remote with multipart file uploads: http://svn.kylemaxwell.com/form_remote_upload/trunk/To those unfamiliar with the hack, it involves using a hidden

Re: [Rails-core] #3527, flash and halted filter chains

2006-07-20 Thread Caio Chassot
On 2006-07-20, at 14:12 , Lee Marlow wrote: This looks to be the same issue as http://dev.rubyonrails.org/ticket/5584 which I reopened. I attached a failing testcase to it as well. I don't think it's the same issue. Your patch doesn't fix my problem, mine doesn't pass your new test. I can,

Re: [Rails-core] #3527, flash and halted filter chains

2006-07-20 Thread Lee Marlow
This looks to be the same issue as http://dev.rubyonrails.org/ticket/5584 which I reopened. I attached a failing testcase to it as well. -Lee On 7/19/06, Zack Chandler <[EMAIL PROTECTED]> wrote: Any word on the reset_session bug in trunk? - I attached a new test as per Rick Olson's request sho

[Rails-core] [PATCH] add optional count parameter to pluralize

2006-07-20 Thread Caio Chassot
Inspired by the pluralize method in the text_helper, here's a patch that adds an optional count parameter to Inflector.pluralize. Example from the tests: assert_equal 'foos', s.pluralize assert_equal 'foos', s.pluralize(0) assert_equal 'foo', s.pluralize(1) assert_equal 'foos'

[Rails-core] Re: date_helper megapatch andMultiparameterAssignmentErrors

2006-07-20 Thread Thijs Cadier
Hello,I've been looking into the MultiparameterAssignmentErrors issue, I feel confident that a simple change to execute_callstack_for_multiparameter_attributes in ActiveRecord::Base would solve the problem. I'd be more than happy to create a patch if someone from the Core team would take a look at

[Rails-core] [PATCH] alias_method_chain does not support setter methods (foo=)

2006-07-20 Thread Caio Chassot
Seems like trac is not fully back, still fail when trying to create a ticket, so here's the patch I planned to post there: active_support_alias_method_chain_for_setters.diff Description: Binary data ___ Rails-core mailing list Rails-core@lists.rubyo

Re: [Rails-core] #5209 patch: :dependent => :nullify deletes child records

2006-07-20 Thread Chris Mear
On 20 Jul 2006, at 9:55 am, Rimantas Liubertas wrote: On 7 Jun 2006, at 6:36 am, Chris Mear wrote: A couple of weeks ago I noticed a bug with :dependent => :nullify on a has_many or has_one. When you delete the parent, the children's foreign keys are nullified, as expected. But when you d

Re: [Rails-core] #5209 patch: :dependent => :nullify deletes child records

2006-07-20 Thread Rimantas Liubertas
When you delete the parent, the > children's foreign keys are nullified, as expected. But when you do > parent.child.delete or parent.children.clear, ActiveRecord actually > deletes the child records, rather than just nullifying them. > > In my eyes, if you've set :dependent => :nullify, you're s

Re: [Rails-core] #5209 patch: :dependent => :nullify deletes child records

2006-07-20 Thread Chris Mear
On 7 Jun 2006, at 6:36 am, Chris Mear wrote: A couple of weeks ago I noticed a bug with :dependent => :nullify on a has_many or has_one. When you delete the parent, the children's foreign keys are nullified, as expected. But when you do parent.child.delete or parent.children.clear, ActiveRe