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.

Hunter's latest activity

Tuesday, September 07 2010
5549 ActiveRecord::Calculations.count( ) not work , when mysql table is empty was updated in Ruby on Rails
  • Hunter
    Hunter commented at 2:37 AM

    Hi, Thanks for your quick action on this fault.

    Something clarify here.

    1. I use mysql gem rather than mysql2

    2. I am on windows platform

    3. when I switch back to ...

Saturday, September 04 2010
5549 ActiveRecord::Calculations.count( ) not work , when mysql table is empty was updated in Ruby on Rails
  • Hunter
    Hunter commented at 2:59 AM

    the trace stack is already in the post.

    extract the excetion for count here:

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0/lib/active_r
    ecord/rela...

Friday, September 03 2010
5549 ActiveRecord::Calculations.count( ) not work , when mysql table is empty was created in Ruby on Rails
  • Hunter
    Hunter created the ticket at 4:06 PM

    it can works well in rails2.3.5, now failed in rails3, it getting bad.

    C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0/lib/active_record/connect
    ion_ada...

Saturday, March 20 2010
4243 rails 3 beta : named route not work was updated in Ruby on Rails
  • Hunter
    Hunter commented at 4:29 PM

    Here is the work around:
    map.login '/my/login', :controller => 'users', :action => 'login'

  • Hunter
    Hunter created the ticket at 3:44 PM

    when set a named route in config/routes.rb

    G0::Application.routes.draw do |map|
    resources :users match 'my/login' => 'user#login'

    .....

    end

    use:rake routes ,the...