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.

Joshua White's latest activity

Tuesday, October 20 2009
3397 establish_connection on through connection does not work was created in Ruby on Rails
  • Joshua White
    Joshua White created the ticket at 9:31 PM

    The has_many :through breaks when the models aren't all in the same db using establish_connection. I saw there were some updates in rails 2.3.4 so I updated to ...

Wednesday, September 16 2009
2049 to_xml nil => true attribute should not appear when I skip types was updated in Ruby on Rails
  • Joshua White
    Joshua White commented at 1:13 AM

    Does this mean that the ability to not include the nil=>'true' is left to the individual to do themselves? Should I submit a patch? I am for adding a skip_nils ...

Thursday, July 23 2009
2941 2.3.3 fcgi problem was updated in Ruby on Rails
  • Joshua White
    Joshua White commented at 8:17 PM

    I did the same thing on 4 of my rails sites and they all seem fine. Does mean we need to submit a patch?

Wednesday, July 22 2009
2941 2.3.3 fcgi problem was updated in Ruby on Rails
  • Joshua White
    Joshua White commented at 11:25 PM

    I found a workaround, it took me installing rails local gems, then I had to modify the file...

    rack-1.0.0/lib/rack/handler/fastcgi.rb
    And comment out the alias ...

  • Joshua White
    Joshua White created the ticket at 10:22 PM

    I am hosting on Bluehost who just cowboyed through a update to 2.3.2, then the next day to 2.3.3. I got everything working fine in 2.3.2, but the 2.3.3 is just ...

2563 [PATCH] add :update_only option to accepts_nested_attributes_for was updated in Ruby on Rails
  • Joshua White
    • Assigned user set to Eloy Duran
    by Joshua White at 10:45 AM

    I wrote the exact same sort of thing a few months back. There was a bit of discussion and I talked with Eloy a bit as well.

    My patch added two options, each app...

Thursday, June 04 2009
1149 Invalid has_one :through source_reflection macros was updated in Ruby on Rails
  • Joshua White
    Joshua White commented at 12:54 AM

    Sorry, I realized my last post was incorrect, it was comparing exam_record.id to history.patient_id, and that this bug is closed, I just had to specify the prim...

  • Joshua White
    Joshua White commented at 12:22 AM

    I tried a number of things and eventually realized I could just specify the foreign_key
    so in my
    History.rb
    belongs_to :patient

    Patient.rb
    has_many :exam_record...

  • Joshua White
    Joshua White commented at 12:03 AM

    Is there a good way to do this in the case that the join model is a has_one relationship? Or is writing SQL the best way to do it?

2247 has_one :through produces invalid SQL was updated in Ruby on Rails
  • Joshua White
    Joshua White commented at 12:04 AM

    Apparently this is discussed in #1149, the has_one through only works when the join is a has_many or belongs_to.