search for: for_selected_month

Displaying 1 result from an estimated 1 matches for "for_selected_month".

2013 Apr 03
2
strange behavior with active relation any? method
...der is that when I call inspect on @drivers, then @drivers.any? is evaluated to true in the view when I click on the second page using kaminari: @drivers = Driver.select("drivers.*, #{sort_column}") .joins([:reports, :driving_habits]) .by_month(for_selected_month.to_i, for_selected_year.to_i) .order(sort_column + " " + sort_direction) .page(params[:page]).per(1) puts "The drivers #{@drivers.inspect}" What''s driving all this weird behavior? -- You received this message because you...