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.

ronin-20016 (at lighthouseapp)'s latest activity

Thursday, April 15 2010
4399 how to start Ruby on Rails from Initial was updated in Ruby on Rails
Tuesday, April 13 2010
4360 Chaining where with select "count * as c" in rails3 is failing was updated in Ruby on Rails
  • ronin-20016 (at lighthouseapp)
    ronin-20016 (at lighthouseapp) commented at 2:48 PM

    I'd like to better understand what you are trying to accomplish?

    I take it you have 2 models - Business and Contact. Contact belongs_to a Business. Business has...

Monday, April 12 2010
4360 Chaining where with select "count * as c" in rails3 is failing was updated in Ruby on Rails
  • ronin-20016 (at lighthouseapp)
    ronin-20016 (at lighthouseapp) commented at 9:21 PM

    Shouldn't you have a * in your statement if you want to count * as c?

    The following works for me:

      b=Business.where("businesses.is_public=?",true)
      b=b.selec...