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.

fearless_fool's latest activity

Monday, March 14 2011
6576 number_to_human < 1.0 raises TypeError: nil can't be coerced to fixnum was created in Ruby on Rails
  • fearless_fool
    fearless_fool created the ticket at 6:40 PM

    Passing a value whose magnitude is less than 1.0 raises "TypeError: nil can't be coerced to fixnum":

    onyx[~/Developer/bd]$ rake about
    About your application's ...
Wednesday, February 09 2011
6404 rake db:migrate:status fooled by backup files was updated in Ruby on Rails
  • fearless_fool
    fearless_fool commented at 7:44 PM

    (Hey - why did Lighthouse apply formatting inside of a @@@ ... @@@ block?)

  • fearless_fool
    fearless_fool created the ticket at 7:39 PM

    The presence of backup migration files (e.g. 20110208231103_create_analysis_cdf.rb~) causes rake db:migrate:status to display spurious entries. Not a serious pr...

Friday, December 17 2010
6179 Heisenberg principal in ActiveRecord::Relation: observing relation changes it was updated in Ruby on Rails
  • fearless_fool
    fearless_fool commented at 10:38 PM

    @SK:

    The Heisenberg reference was intended to enliven your day, even if not totally accurate. But -- absent any documentation about how relations are cached -- ...

  • fearless_fool
    • Assigned user set to Aaron Patterson
    by fearless_fool at 7:53 PM

    Assigning this to Aaron, since he appears to be the relationship maven. If I'm violating lighthouse etiquette by assigning the ticket, please excuse me - I'm no...

Thursday, December 16 2010
6179 Heisenberg principal in ActiveRecord::Relation: observing relation changes it was created in Ruby on Rails
  • fearless_fool
    fearless_fool created the ticket at 5:45 AM

    I have isolated a case where calling ActiveRecord::Relation#all (or evidently anything operation that forces evaluation) changes its state to that it subsequent...

Tuesday, October 26 2010
777 Simpler AR#exists? was updated in Ruby on Rails
  • fearless_fool
    • Importance changed from to
    by fearless_fool at 7:19 PM

    A reason to implement @Roman Le Négrate's change is that it would allow exists?() to work on tables that lack a PK. See also ticket #615.

615 ActiveRecord exists? won't work with keyless tables was updated in Ruby on Rails
  • fearless_fool
    • Tag changed from 2.1, activerecord, bug to 3.0, activerecord, bug
    by fearless_fool at 7:11 PM

    Doh - once again with formatting...

      > UserRole.find(:first, :conditions => {:user_id => 4, :role_id => 2})
      => #<UserRole user_id: 4, role_id: 2>
    

    Of course...

  • fearless_fool
    • Importance changed from to
    by fearless_fool at 7:06 PM

    Is there a good explanation for the wontfix status? Specifically, it is surprising that AR.exists?() fails on PK-less tables, given that AR.find() works just fi...

Wednesday, August 18 2010
5404 save! silently fails was created in Ruby on Rails
  • fearless_fool
    fearless_fool created the ticket at 5:28 PM

    I'm undecided if this is a bug in ActiveRecord or a hole in the documentation, but I'm certain that it is one or the other. Consider:

    irb(main):059:0> obs = Ob...