Topic: will_paginate and NoMethodError on :order while eager loading
I've been combining a will_paginate object with eager loading, and I'm getting an error when I include an :order parameter.
a Song has_many :placements, :placements is a join model, and :title is a column in Songs.
@songs = Song.paginate :page => params[:page], :include => :placements, :per_page => 4, :order => :title
NoMethodError (private method `scan' called for :title:Symbol):
It works if I omit :order => :title like
@songs = Song.paginate :page => params[:page], :include => :placements, :per_page => 4
Am I doing something drastically wrong here?