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.

Chris Anderson's latest activity

Friday, March 04 2011
6524 strange behaviour with select and model method was created in Ruby on Rails
  • Chris Anderson
    Chris Anderson created the ticket at 6:49 PM

    I'm tracking down performance issues in my app with Rails 3/Ruby 1.8.7. Found a strange issue with a select helper.

    In my Job model...

    def self.provinces
      ["A...
6518 NoMethodError (undefined method `utc' for "UTC":String) was updated in Ruby on Rails
  • Chris Anderson
    Chris Anderson commented at 4:00 PM

    Well, I'm not sure why that worked but it did. To my knowledge I'm not using cookies as I use db session store. What cookie is Rails 3 storing?

    Now that's that ...

  • Chris Anderson
    Chris Anderson created the ticket at 9:17 AM

    I'm not sure what the hell went wrong but I used rvm to test my app under ruby 1.9.2 because it was taking forever to respond to http requests under Rails 3 in ...

Thursday, November 11 2010
5939 attr_accessor not accessible through accepts_nested_attributes_for was updated in Ruby on Rails
  • Chris Anderson
    Chris Anderson commented at 3:58 PM

    This patch seems to work for me. Thank you!

Wednesday, November 10 2010
5939 attr_accessor not accessible through accepts_nested_attributes_for was updated in Ruby on Rails
  • Chris Anderson
    Chris Anderson commented at 8:38 PM

    I haven't migrated to v3 yet so I'll leave that up to you guys.

    This is my first foray into submitting a bug for rails. You have attached a patch. What's the be...

  • Chris Anderson
    Chris Anderson commented at 4:45 PM

    If I manually add a virtual attribute via getter and setter methods instead of using attr_accessor like this...

    def current_user=(user)
      @current_user = user
    ...
  • Chris Anderson
    Chris Anderson commented at 4:29 PM

    Thanks, Neeraj.

    Basically, that would work except that :current_user won't be outputted in the first case because :_destroy => false. And in the second case it ...

  • Chris Anderson
    Chris Anderson commented at 3:36 PM

    Sure. When "accepts_nested_attributes_for :allow_destroy => true" is set, if I set the :_destroy field of a nested model record in my form to true then it will ...

Tuesday, November 09 2010
5939 attr_accessor not accessible through accepts_nested_attributes_for was created in Ruby on Rails
  • Chris Anderson
    Chris Anderson created the ticket at 7:17 PM

    I'm on rails v2.3.9 and I'm seeing strange behaviour (to me anyways) in accepts_nested_attributes_for. In a certain circumstance the attr_accessor is not availa...