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.

Erik van Eykelen's latest activity

Monday, January 17 2011
6301 No 'uninitialized constant' thrown when referencing AR class was created in Ruby on Rails
  • Erik van Eykelen
    Erik van Eykelen created the ticket at 6:41 PM

    'uninitialized constant' is not thrown for the following use case:

    class Post < ActiveRecord::Base
      TEST_FOO = 123
      validates_presence_of :title, :message =>...
Monday, October 11 2010
5772 Calling a model "Update" leads to unexpected behavior was updated in Ruby on Rails
  • Erik van Eykelen
    Erik van Eykelen commented at 2:27 PM

    I totally agree with avoiding reserved words, I simply overlooked the fact that it applies to model names too. I knew about Sessions though ;-)

    Your patch is gr...

Friday, October 08 2010
5772 Calling a model "Update" leads to unexpected behavior was created in Ruby on Rails
  • Erik van Eykelen
    Erik van Eykelen created the ticket at 7:31 PM

    When you have these two models:

    class Update < ActiveRecord::Base
    has_many :comments end

    and

    class Comment < ActiveRecord::Base
    belongs_to :update end

    then issu...