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.

There was a problem

You must be a member of this account.

Rob Olson's latest activity

Monday, April 18 2011
3165 ActiveRecord::MissingAttributeError after update to rails v 2.3.4 was updated in Ruby on Rails
  • Rob Olson
    • Tag changed from 234, 235, 300rc, activerecord, exception, patch to 2-3-stable, activerecord, exception, patch
    by Rob Olson at 10:55 PM

    This has finally been resolved in Rails 3.0.7 by #6127.

    It's still present in 2-3-stable though.

Thursday, September 09 2010
5589 after_find and after_initialize can't access table attributes was updated in Ruby on Rails
  • Rob Olson
    Rob Olson commented at 7:26 AM

    I believe this is a duplicate of #3165.

Tuesday, November 10 2009
3165 ActiveRecord::MissingAttributeError after update to rails v 2.3.4 was updated in Ruby on Rails
  • Rob Olson
    Rob Olson commented at 3:37 AM

    As Tom Lea pointed out, in the 2-3-stable branch after_initialize must be declared as an actual method. It was working fine for me before but after updating Rai...

Wednesday, October 28 2009
3165 ActiveRecord::MissingAttributeError after update to rails v 2.3.4 was updated in Ruby on Rails
  • Rob Olson
    Rob Olson commented at 6:53 AM

    @Tom Lea: I have been unable to recreate after_initialize not running. On my machines it runs (and results in an error) the way I have specified it. Any ideas?

    ...

Monday, October 26 2009
3165 ActiveRecord::MissingAttributeError after update to rails v 2.3.4 was updated in Ruby on Rails
  • Rob Olson
    Rob Olson commented at 3:26 AM

    Marek, thank you for sharing how you have employed after_find in your application. I do not know all of the details of your application but I typically handle t...

Sunday, October 25 2009
3165 ActiveRecord::MissingAttributeError after update to rails v 2.3.4 was updated in Ruby on Rails
  • Rob Olson
    Rob Olson commented at 4:18 AM

    Marek,

    Why would you expect the after_find filter to be fired for exists? As you mentioned earlier, that was not the behavior in Rails 2.3.2.

    I think of #exists...

Saturday, October 24 2009
3165 ActiveRecord::MissingAttributeError after update to rails v 2.3.4 was updated in Ruby on Rails
  • Rob Olson
    Rob Olson commented at 9:16 AM

    The issue is that find_by_sql is

    This bug bit me as well. Instead of changing the select query from 'id' to '*', I believe the correct fix is to not instantiate...