if :search is not attr_accessible in model.  whole thing breaks.