Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Ary Borenszweig's latest activity

Monday, April 25 2011
6741 Rails 3: find_or_create_by gives ArgumentError (Unknown keys) with hash param... was updated in Ruby on Rails
  • Ary Borenszweig
    Ary Borenszweig commented at 3:53 PM

    Why low priority? The beauty of Rails 3 is to work with associations like this, and I can see many use cases where you would want to find or create by an attrib...

  • Ary Borenszweig
    Ary Borenszweig created the ticket at 6:08 AM

    This is the code that fails, you can put it in a main.rb file and run it:

    require 'rubygems'
    require 'active_record'
    
    ActiveRecord::Base.establish_connection(:...
Friday, April 01 2011
6660 Allow after_commit :do_something, :on => [:update, :create] was updated in Ruby on Rails
  • Ary Borenszweig
    Ary Borenszweig commented at 8:29 PM

    Yes, thanks! That worked. So what do we do about this? Close as invalid? Still propose to do it? (I will try to make a patch for this)

Thursday, March 31 2011
6660 Allow after_commit :do_something, :on => [:update, :create] was created in Ruby on Rails
  • Ary Borenszweig
    Ary Borenszweig created the ticket at 6:48 PM

    It's very common to want to do the same thing on an update/create callback after commit (example: create/update a related file, but if the file was there then i...